[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    [PATCH 09/19] udhcpc: handle Comcast's 6RD.
From:       Florian Fainelli <florian () alphacore ! org>
Date:       2012-09-25 12:06:08
Message-ID: 1348574778-31081-10-git-send-email-florian () alphacore ! org
[Download RAW message or body]

From: Jo-Philipp Wich <jow@openwrt.org>

Comcast is using a different DHCP option number for their 6RD (0x96 instead of
0xd4) handle this.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
---
 networking/udhcp/common.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/networking/udhcp/common.c b/networking/udhcp/common.c
index ae0e0d3..d9ea01c 100644
--- a/networking/udhcp/common.c
+++ b/networking/udhcp/common.c
@@ -62,7 +62,8 @@ const struct dhcp_optflag dhcp_optflags[] = {
 	{ OPTION_U16                              , 0x84 }, /* DHCP_VLAN_ID       */
 	{ OPTION_U8                               , 0x85 }, /* DHCP_VLAN_PRIORITY */
 #endif
-	{ OPTION_6RD                              , 0xd4 }, /* DHCP_6RD           */
+	{ OPTION_6RD                              , 0xd4 }, /* DHCP_6RD (RFC)     */
+	{ OPTION_6RD                              , 0x96 }, /* DHCP_6RD (Comcast) */
 	{ OPTION_STATIC_ROUTES | OPTION_LIST      , 0xf9 }, /* DHCP_MS_STATIC_ROUTES */
 	{ OPTION_STRING                           , 0xfc }, /* DHCP_WPAD          */
 
@@ -128,7 +129,8 @@ const char dhcp_option_strings[] ALIGN1 =
 	"vlanid" "\0"      /* DHCP_VLAN_ID        */
 	"vlanpriority" "\0"/* DHCP_VLAN_PRIORITY  */
 #endif
-	"ip6rd" "\0"       /* DHCP_6RD            */
+	"ip6rd" "\0"       /* DHCP_6RD (RFC)      */
+	"ip6rd" "\0"       /* DHCP_6RD (Comcast)  */
 	"msstaticroutes""\0"/* DHCP_MS_STATIC_ROUTES */
 	"wpad" "\0"        /* DHCP_WPAD           */
 	;
-- 
1.7.9.5

_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic