On Fri, Nov 4, 2011 at 5:11 AM, 馬克泡 <[email protected]> wrote: > 2011/11/4 Denys Vlasenko <[email protected]>: >>> 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 _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
