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

馬克泡 macpaul at gmail.com
Fri Nov 4 04:11:48 UTC 2011


Hi Denys

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?

>
> Take a look at an example in busybox/examples/udhcp/simple.script
>

Thanks!

-- 
Best regards,
Macpaul Lin


More information about the busybox mailing list