X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=networking%2Fudhcp%2Foptions.c;h=3168fc69aa68d9e6d60c306b0831c7190934fc4f;hb=bb23c069191f18ed11b826371ed3571e214b41e3;hp=bda6efc7e5cebb37a78f0a44faaefd44881590a9;hpb=c4d606e3678333fe07348904d1e2222cf43c5e31;p=oweals%2Fbusybox.git diff --git a/networking/udhcp/options.c b/networking/udhcp/options.c index bda6efc7e..3168fc69a 100644 --- a/networking/udhcp/options.c +++ b/networking/udhcp/options.c @@ -11,7 +11,7 @@ /* supported options are easily added here */ const struct dhcp_option dhcp_options[] = { - /* name[10] flags code */ + /* name[12] flags code */ {"subnet", OPTION_IP | OPTION_REQ, 0x01}, {"timezone", OPTION_S32, 0x02}, {"router", OPTION_IP | OPTION_LIST | OPTION_REQ, 0x03}, @@ -43,17 +43,23 @@ const struct dhcp_option dhcp_options[] = { {"tftp", OPTION_STRING, 0x42}, {"bootfile", OPTION_STRING, 0x43}, {"userclass", OPTION_STRING, 0x4D}, +#if ENABLE_FEATURE_RFC3397 + {"search", OPTION_STR1035 | OPTION_LIST | OPTION_REQ, 0x77}, +#endif /* MSIE's "Web Proxy Autodiscovery Protocol" support */ {"wpad", OPTION_STRING, 0xfc}, {"", 0x00, 0x00} }; /* Lengths of the different option types */ -const unsigned char option_lengths[] = { +const unsigned char option_lengths[] ALIGN1 = { [OPTION_IP] = 4, [OPTION_IP_PAIR] = 8, [OPTION_BOOLEAN] = 1, [OPTION_STRING] = 1, +#if ENABLE_FEATURE_RFC3397 + [OPTION_STR1035] = 1, +#endif [OPTION_U8] = 1, [OPTION_U16] = 2, [OPTION_S16] = 2,