contrib: DHCP network monitor and fallback from DHCP to static address
Arnout Vandecappelle
arnout at mind.be
Wed Apr 30 12:39:35 UTC 2008
Chris Johns wrote:
> Arnout Vandecappelle wrote:
>> Hoi,
>>
>> My colleague Maarten and I have developed an extension to the DHCP
>> client which allows monitoring the network interface and restarting DHCP
>> when the network changes.
[snip]
> Why was the nfs_diskless_valid code removed ?
Because it is useless as it is (nfs_diskless_valid is never set in the
existing code, and is not exported in any header; it's historical in the
bsdnet code and has been copied blindly into the DHCP client code). In
addition, if anyone would ever set nfs_diskless_valid to one, the
do_dhcp_timeout wouldn't work anymore...
> The rtems_bsdnet_do_dhcp change is wrong. You need to obtain the
> network semaphore after the timeout not release it.
Ouch. Good observation.
> Why the changes in bootp_subr.c with the order of the calls to ifioctl ?
Oops. Fall-out from trying to re-configure the interface without
de-configuring it first. Slipped through my minimal-change filter.
Shouldn't make any difference, though.
The last two issues are removed in the attached patch. However, this
has not been tested at all because I don't have access to the board
anymore...
Regards,
Arnout
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286540
Mind Embedded Development (an Essensium division)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch-dhcp
URL: <http://lists.rtems.org/pipermail/users/attachments/20080430/51a08f2c/attachment-0001.ksh>
More information about the users
mailing list