mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 19:18:07 +02:00
[package] busybox: implement ms static routes option in udhcpc (#6435)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24779 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
8d05266bea
commit
ca93116b8d
22
package/busybox/patches/245-udhcpc_add_msroutes_option.patch
Normal file
22
package/busybox/patches/245-udhcpc_add_msroutes_option.patch
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
--- a/networking/udhcp/common.c
|
||||||
|
+++ b/networking/udhcp/common.c
|
||||||
|
@@ -53,7 +53,8 @@ const struct dhcp_optflag dhcp_optflags[
|
||||||
|
{ OPTION_DNS_STRING | OPTION_LIST , 0x77 }, /* DHCP_DOMAIN_SEARCH */
|
||||||
|
{ OPTION_SIP_SERVERS , 0x78 }, /* DHCP_SIP_SERVERS */
|
||||||
|
#endif
|
||||||
|
- { OPTION_STATIC_ROUTES , 0x79 }, /* DHCP_STATIC_ROUTES */
|
||||||
|
+ { OPTION_STATIC_ROUTES , 0x79 }, /* DHCP_STATIC_ROUTES (RFC) */
|
||||||
|
+ { OPTION_STATIC_ROUTES , 0xf9 }, /* DHCP_STATIC_ROUTES (Microsoft) */
|
||||||
|
{ OPTION_6RD , 0xd4 }, /* DHCP_6RD (RFC) */
|
||||||
|
{ OPTION_6RD , 0x96 }, /* DHCP_6RD (Comcast) */
|
||||||
|
{ OPTION_STRING , 0xfc }, /* DHCP_WPAD */
|
||||||
|
@@ -115,7 +116,8 @@ const char dhcp_option_strings[] ALIGN1
|
||||||
|
#endif
|
||||||
|
// doesn't work in udhcpd.conf since OPTION_STATIC_ROUTES
|
||||||
|
// is not handled yet by "string->option" conversion code:
|
||||||
|
- "staticroutes" "\0"/* DHCP_STATIC_ROUTES */
|
||||||
|
+ "staticroutes" "\0" /* DHCP_STATIC_ROUTES (RFC) */
|
||||||
|
+ "msstaticroutes" "\0"/* DHCP_STATIC_ROUTES (Microsoft) */
|
||||||
|
"ip6rd" "\0" /* DHCP_6RD (RFC) */
|
||||||
|
"ip6rd" "\0" /* DHCP_6RD (Comcast) */
|
||||||
|
"wpad" "\0" /* DHCP_WPAD */
|
Loading…
Reference in New Issue
Block a user