From 975463400ddb9b5fd30edddaf35ecdc01048bb7c Mon Sep 17 00:00:00 2001 From: Toastman Date: Wed, 27 Mar 2013 16:34:03 +0700 Subject: [PATCH] Fix for dhcpv6 with prefix delegation // eval("ip", "route", "add", "::/0", "dev", (char *)wan_ifname); //removed by Toastman // see discussion at http://www.linksysinfo.org/index.php?threads/ipv6-and-comcast.38006/ // post #24 refers. --- release/src/router/nvram/defaults.c | 2 +- release/src/router/rc/wan.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/release/src/router/nvram/defaults.c b/release/src/router/nvram/defaults.c index 73a1935cdb..b8bd264eca 100644 --- a/release/src/router/nvram/defaults.c +++ b/release/src/router/nvram/defaults.c @@ -169,7 +169,7 @@ const defaults_t defaults[] = { { "ipv6_prefix_length", "64" }, // The bit length of the prefix. Used by dhcp6c. For radvd, /64 is always assumed. { "ipv6_rtr_addr", "" }, // defaults to $ipv6_prefix::1 { "ipv6_radvd", "1" }, // Enable Router Advertisement (radvd) - { "ipv6_accept_ra", "0" }, // Accept RA on WAN and/or LAN interfaces + { "ipv6_accept_ra", "1" }, // Accept RA on WAN and/or LAN interfaces { "ipv6_ifname", "six0" }, // The interface facing the rest of the IPv6 world { "ipv6_tun_v4end", "0.0.0.0" }, // Foreign IPv4 endpoint of SIT tunnel { "ipv6_relay", "1" }, // Foreign IPv4 endpoint host of SIT tunnel 192.88.99.? diff --git a/release/src/router/rc/wan.c b/release/src/router/rc/wan.c index 44bc12ad4c..bd2bfc7888 100644 --- a/release/src/router/rc/wan.c +++ b/release/src/router/rc/wan.c @@ -845,7 +845,9 @@ void start_wan6_done(const char *wan_ifname) eval("ip", "route", "add", "::/0", "dev", (char *)wan_ifname, "metric", "2048"); break; case IPV6_NATIVE_DHCP: - eval("ip", "route", "add", "::/0", "dev", (char *)wan_ifname); +// eval("ip", "route", "add", "::/0", "dev", (char *)wan_ifname); //removed by Toastman +// see discussion at http://www.linksysinfo.org/index.php?threads/ipv6-and-comcast.38006/ +// post #24 refers. stop_dhcp6c(); start_dhcp6c(); break; -- 2.11.4.GIT