summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@dds.nl>2011-05-10 08:46:39 +0000
committerSeth Mos <seth.mos@dds.nl>2011-05-10 08:46:39 +0000
commitc65d30519a2436c82bddf4a617e5a3a60ca493d3 (patch)
tree287d7c874a7607fdc623e29da19484ff8c710bd9 /etc
parent1a0b04df2f0b78dd1a448c790e582888497aa6c4 (diff)
downloadpfsense-c65d30519a2436c82bddf4a617e5a3a60ca493d3.zip
pfsense-c65d30519a2436c82bddf4a617e5a3a60ca493d3.tar.gz
Correct the dhcp6c function name, accept router advertisements
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/interfaces.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 5889aa8..f7cd1c8 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -1015,7 +1015,7 @@ function interface_bring_down($interface = "wan", $destroy = false) {
$pid = find_dhclient_process($realif);
if($pid)
mwexec("/bin/kill {$pid}");
- $pidv6 = find_dhclient6_process($realif);
+ $pidv6 = find_dhcp6c_process($realif);
if($pidv6)
mwexec("/bin/kill {$pidv6}");
sleep(1);
@@ -2869,6 +2869,8 @@ function interface_dhcpv6_configure($interface = "wan") {
fwrite($fd, $dhcp6cconf);
fclose($fd);
+ /* accept router advertisements for this interface */
+ mwexec("/sbin/sysctl -w net.inet6.ip6.accept_rtadv=1");
/* fire up dhcp6c for IPv6 first, this backgrounds immediately */
mwexec("/usr/local/sbin/dhcp6c -d -c {$g['varetc_path']}/dhcp6c_{$interface}.conf {$wanif}");
OpenPOWER on IntegriCloud