[Bug 1248] New: Network setup jumps to random address when no interfaces available
rtems-bugs at rtems.org
rtems-bugs at rtems.org
Fri Jul 13 21:42:18 UTC 2007
http://www.rtems.org/bugzilla/show_bug.cgi?id=1248
Summary: Network setup jumps to random address when no interfaces
available
Product: RTEMS
Version: 4.7
Platform: All
OS/Version: RTEMS
Status: NEW
Severity: normal
Priority: P4
Component: networking
AssignedTo: norume at aps.anl.gov
ReportedBy: luke at spacequest.com
When there are no available interfaces (i.e., no attach function completes
successfully), rtems_bsdnet_setup will cause a jump to a random address. This
is due to the fact that the address structure is not initialized until after
the interface is fully configured; however, the default route is configured
regardless of the existence of configured interfaces. Thus, the sa_family
field of address is un-initialized; rtrequest then uses an invalid routing
tree, and the code jumps off to hyperspace.
The fix seems easy enough: don't add the default route unless at least one
interface has been configured successfully.
--
Configure bugmail: http://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the bugs
mailing list