summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorsmos <seth.mos@dds.nl>2011-08-21 17:32:28 +0200
committersmos <seth.mos@dds.nl>2011-08-21 17:32:28 +0200
commit826ac52c6858b8f47d5b3a58f9f7e052ff2f1f8b (patch)
tree9b70560eda3913e1db4a5955a109f950aaffa3ef /etc/inc
parentfd1e6c05c084cfcf42e3e590ebf50a389c3b7017 (diff)
downloadpfsense-826ac52c6858b8f47d5b3a58f9f7e052ff2f1f8b.zip
pfsense-826ac52c6858b8f47d5b3a58f9f7e052ff2f1f8b.tar.gz
Add router type to rtadvd daemon configuration to only advertise the router without slaac.
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/services.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/inc/services.inc b/etc/inc/services.inc
index 07537bb..5eee62c 100644
--- a/etc/inc/services.inc
+++ b/etc/inc/services.inc
@@ -69,6 +69,7 @@ function services_rtadvd_configure() {
}
/* raflags, other o, managed=64 m, stateful=128, both=192 */
+ /* pinfoflags 0 = disable slaac */
$rtadvdconf = "# Automatically Generated, do not edit\n";
$rtadvdconf = <<<EOD
@@ -105,6 +106,10 @@ EOD;
switch($dhcpv6ifconf['mode']) {
case "managed":
$rtadvdconf .= "\t:raflags=\"m\":\\\n";
+ $rtadvdconf .= "\t:pinfoflags=\"\":\\\n";
+ break;
+ case "router":
+ $rtadvdconf .= "\t:pinfoflags=\"\":\\\n";
break;
case "assist":
$rtadvdconf .= "\t:raflags=\"mo\":\\\n";
OpenPOWER on IntegriCloud