summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@dds.nl>2011-03-21 16:46:53 +0100
committerSeth Mos <seth.mos@dds.nl>2011-03-21 16:46:53 +0100
commit4a3ff4932c5b9c15fa8d086819210390aa7e8610 (patch)
treeeb8d473f2903759b84562d70e790d27845117ef9 /etc
parent656f17638f5f72ecf218a7b23228be9b54c18353 (diff)
downloadpfsense-4a3ff4932c5b9c15fa8d086819210390aa7e8610.zip
pfsense-4a3ff4932c5b9c15fa8d086819210390aa7e8610.tar.gz
Set some defaults, advertise a default ipv6 mtu of 1280.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/services.inc22
1 files changed, 18 insertions, 4 deletions
diff --git a/etc/inc/services.inc b/etc/inc/services.inc
index d4ad63a..6224b45 100644
--- a/etc/inc/services.inc
+++ b/etc/inc/services.inc
@@ -75,6 +75,19 @@ function services_rtadvd_configure() {
/* raflags, managed=64, stateful=128, both=192 */
$rtadvdconf = "# Automatically Generated, do not edit\n";
+ $rtadvdconf = <<<EOD
+
+#
+# common definitions.
+#
+default:\
+ :raflags#0:rltime#3600:\
+ :pinfoflags#64:vltime#360000:pltime#360000:mtu#1500:
+ether:\
+ :mtu#1280:tc=default:
+
+EOD;
+
$rtadvdnum = 0;
foreach ($dhcpdv6cfg as $dhcpv6if => $dhcpv6ifconf) {
$rtadvdnum++;
@@ -98,17 +111,18 @@ function services_rtadvd_configure() {
$rtadvdconf .= "\t:prefixlen#{$ifcfgsnv6}:\\\n";
switch($dhcpv6ifconf['mode']) {
case "managed":
- $rtadvdconf .= "\t:raflags#64:\n";
+ $rtadvdconf .= "\t:raflags#64:\\\n";
break;
case "assist":
- $rtadvdconf .= "\t:raflags#192:\n";
+ $rtadvdconf .= "\t:raflags#192:\\\n";
break;
default:
- $rtadvdconf .= "\t:raflags#0:\n";
+ $rtadvdconf .= "\t:raflags#0:\\\n";
break;
}
- $rtadvdconf .= "\n";
+ $rtadvdconf .= "\t\":tc=ether:\n";
+ $rtadvdconf .= "\n\n";
}
OpenPOWER on IntegriCloud