[RFC][UDHCPC][Suggestion] Is there possible to enable option 03 (DHCP_ROUTER) in busybox?

Denys Vlasenko vda.linux at googlemail.com
Fri Nov 4 11:16:56 UTC 2011


On Fri, Nov 4, 2011 at 5:11 AM, 馬克泡 <macpaul at gmail.com> wrote:
> 2011/11/4 Denys Vlasenko <vda.linux at googlemail.com>:
>>> The option "03" is DHCP_ROUTER when I looked it up in networking/udhcp/common.h.
>>> How can I enable it in udhcpc so it can apply the option "03" as
>>> default gateway?
>>> Is there any code need to be fixed or complete in dhcpc.c in busybox?
>
> Thanks for you hint. But I am still confused.
> The option DHCP_ROUTER looks like has been commented out in
> networking/udhcp/common.h.
> If the option has been comment out, how could the code in dhcpc.c
> parse the packet
> and expose it to environment variables?

Look at dhcp_optflags[] and dhcp_option_strings[] in
networking/udhcp/common.c

-- 
vda


More information about the busybox mailing list