From 4cdd20bcd649da887d03436baf4a6256e653b210 Mon Sep 17 00:00:00 2001 From: Ermal Date: Thu, 20 Feb 2014 23:35:51 +0000 Subject: [PATCH] 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(-) diff --git a/etc/inc/services.inc b/etc/inc/services.inc index 3e6a7094f3..8e9af9e8f9 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'];