summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@dds.nl>2011-09-03 20:01:17 +0200
committerSeth Mos <seth.mos@dds.nl>2011-09-03 20:01:17 +0200
commita04959b8838d61f59838b2062fa404e0bc9beaa0 (patch)
tree8a0424cc06e08e49781025363bfde6c90e0cc581
parentf535d5a0bb339616e287f74b23e46d9594ad2088 (diff)
downloadpfsense-a04959b8838d61f59838b2062fa404e0bc9beaa0.zip
pfsense-a04959b8838d61f59838b2062fa404e0bc9beaa0.tar.gz
Also add the new RDNSS fields to the rtadvd config for prefix delegation cases.
-rw-r--r--etc/inc/services.inc9
1 files changed, 8 insertions, 1 deletions
diff --git a/etc/inc/services.inc b/etc/inc/services.inc
index f39fa8e..b576dee 100644
--- a/etc/inc/services.inc
+++ b/etc/inc/services.inc
@@ -159,7 +159,14 @@ EOD;
$rtadvdconf .= "\t:addr=\"{$subnetv6}\":\\\n";
$rtadvdconf .= "\t:prefixlen#{$ifcfgsnv6}:\\\n";
$rtadvdconf .= "\t:raflags=\"mo\":\\\n";
- $rtadvdconf .= "\t:tc=ether:\n";
+ $rtadvdconf .= "\t:tc=ether:\\\n";
+ if (isset($config['dnsmasq']['enable'])) {
+ $dnslist = get_interface_ipv6($dhcpv6if);
+ $rtadvdconf .= "\t:rdnss=\"{$dnslist}\":\\\n";
+ } elseif (!empty($config['system']['dnsserver'][0])) {
+ $dnslist = implode(",", $config['system']['dnsserver']);
+ $rtadvdconf .= "\t:rdnss=\"{$dnslist}\":\\\n";
+ }
$rtadvdconf .= "\n\n";
$rtadvdnum++;
}
OpenPOWER on IntegriCloud