From 75aec77a87acc4486a229d59688e26992a164b82 Mon Sep 17 00:00:00 2001 From: Ermal Date: Thu, 20 Feb 2014 23:35:51 +0000 Subject: 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 --- etc/inc/services.inc | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'etc/inc/services.inc') diff --git a/etc/inc/services.inc b/etc/inc/services.inc index b778e7a..5b1aa76 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']; -- cgit v1.1