[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [lwip-devel] Re: DHCP option "Requested IP"

From: Bill Auerbach
Subject: RE: [lwip-devel] Re: DHCP option "Requested IP"
Date: Tue, 22 Sep 2009 08:35:46 -0400

>In your case the call sequence would go like:
>dhcp_set_requested_addr(netif, addr)
>This way, you could set a flag in the dhcp struct, and store the
>requested ip addr somewhere safe.

Just throwing out an idea here.  How about a more generic approach:

void dhcp_set_option (int option, void *)

Thus allowing any DHCP option to be specified.  You could retain:

dhcp_set_requested_addr(netif, addr)

And have it use

dhcp_set_option(50, addr);      // addr = ip_addr *

Instead of adding flags for various options, this function could be used
internally as well.  It could build up the options part of the payload which
is sent.  This might reduce some code from the current DHCP set_options


reply via email to

[Prev in Thread] Current Thread [Next in Thread]