summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-02-20 23:35:51 +0000
committerErmal <eri@pfsense.org>2014-02-20 23:36:40 +0000
commit4cdd20bcd649da887d03436baf4a6256e653b210 (patch)
tree946bebeb259fb20d2bcffb4cd718678ea687524a /etc
parent9d40745bbf333456a8bfdc35a39ac8af3f81501f (diff)
downloadpfsense-4cdd20bcd649da887d03436baf4a6256e653b210.zip
pfsense-4cdd20bcd649da887d03436baf4a6256e653b210.tar.gz
Rather than having issues with not started radvd try to start radvd to discover by itself the prefix on the interface by using the special directive :: on the prefix declaration. Related to many tickets and forum posts
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/services.inc12
1 files changed, 7 insertions, 5 deletions
diff --git a/etc/inc/services.inc b/etc/inc/services.inc
index 3e6a709..8e9af9e 100644
--- a/etc/inc/services.inc
+++ b/etc/inc/services.inc
@@ -220,11 +220,13 @@ function services_radvd_configure() {
continue;
$ifcfgipv6 = get_interface_ipv6($if);
- if(!is_ipaddrv6($ifcfgipv6))
- continue;
-
- $ifcfgsnv6 = get_interface_subnetv6($if);
- $subnetv6 = gen_subnetv6($ifcfgipv6, $ifcfgsnv6);
+ if(!is_ipaddrv6($ifcfgipv6)) {
+ $subnetv6 = "::";
+ $ifcfgsnv6 = "64";
+ } else {
+ $ifcfgsnv6 = get_interface_subnetv6($if);
+ $subnetv6 = gen_subnetv6($ifcfgipv6, $ifcfgsnv6);
+ }
$radvdifs[$realif] = $realif;
$autotype = $config['interfaces'][$trackif]['ipaddrv6'];
OpenPOWER on IntegriCloud