udhcpc: add cidr routes support (patch from #5299)
[openwrt/svn-archive/archive.git] / package / busybox / patches / 244-udhcpc_cidrroute.patch
1 --- a/networking/udhcp/options.c
2 +++ b/networking/udhcp/options.c
3 @@ -46,6 +46,7 @@ const struct dhcp_option dhcp_options[]
4 #if ENABLE_FEATURE_UDHCP_RFC3397
5 { OPTION_STR1035 | OPTION_LIST , 0x77 }, /* search */
6 #endif
7 + { OPTION_U8 | OPTION_LIST | OPTION_REQ, 0x79 }, /* cidr_static_routes */
8 /* MSIE's "Web Proxy Autodiscovery Protocol" support */
9 { OPTION_STRING , 0xfc }, /* wpad */
10
11 @@ -95,6 +96,7 @@ const char dhcp_option_strings[] ALIGN1
12 #if ENABLE_FEATURE_UDHCP_RFC3397
13 "search" "\0"
14 #endif
15 + "cidrroute" "\0" /* cidr_static_routes */
16 /* MSIE's "Web Proxy Autodiscovery Protocol" support */
17 "wpad" "\0"
18 ;