diff options
author | Ermal <eri@pfsense.org> | 2014-02-20 23:35:51 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2014-02-20 23:36:40 +0000 |
commit | 4cdd20bcd649da887d03436baf4a6256e653b210 (patch) | |
tree | 946bebeb259fb20d2bcffb4cd718678ea687524a /etc/inc/services.inc | |
parent | 9d40745bbf333456a8bfdc35a39ac8af3f81501f (diff) | |
download | pfsense-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/inc/services.inc')
-rw-r--r-- | etc/inc/services.inc | 12 |
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']; |