diff --git a/src/etc/inc/interfaces.inc b/src/etc/inc/interfaces.inc index 71efff954..d2034d197 100644 --- a/src/etc/inc/interfaces.inc +++ b/src/etc/inc/interfaces.inc @@ -1225,7 +1225,8 @@ function interface_ppps_configure($interface) $gateways = isset($ppp['gateway']) ? explode(',', $ppp['gateway']) : array(); $subnets = isset($ppp['subnet']) ? explode(',', $ppp['subnet']) : array(); - /* We bring up the parent interface first because if DHCP is configured on the parent we need + /* + * We bring up the parent interface first because if DHCP is configured on the parent we need * to obtain an address first so we can write it in the mpd .conf file for PPTP and L2TP configs */ foreach ($ports as $pid => $port) { @@ -2173,9 +2174,11 @@ EOD; fclose($fd_set); - /* Making sure regulatory settings have actually changed - * before applying, because changing them requires bringing - * down all wireless networks on the interface. */ + /* + * Making sure regulatory settings have actually changed + * before applying, because changing them requires bringing + * down all wireless networks on the interface. + */ exec("{$ifconfig} " . escapeshellarg($if), $output); $ifconfig_str = implode($output); unset($output); @@ -2396,9 +2399,6 @@ function interface_configure($verbose = false, $interface = 'wan', $reload = fal } } - /* Disable Accepting router advertisements unless specifically requested */ - mwexecf('/sbin/ifconfig %s inet6 -accept_rtadv', array($realif)); - /* wireless configuration? */ if (isset($wancfg['wireless']) && is_array($wancfg['wireless']) && !$linkupevent) { interface_wireless_configure($realif, $wancfg, $wancfg['wireless']); @@ -2460,6 +2460,9 @@ function interface_configure($verbose = false, $interface = 'wan', $reload = fal break; } + /* disable accepting router advertisements unless specifically requested */ + mwexecf('/sbin/ifconfig %s inet6 -accept_rtadv', array($realif)); + if (isset($wancfg['ipaddrv6'])) { switch ($wancfg['ipaddrv6']) { case 'slaac': diff --git a/src/www/interfaces.php b/src/www/interfaces.php index 2e3aee243..fba930e80 100644 --- a/src/www/interfaces.php +++ b/src/www/interfaces.php @@ -435,9 +435,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { $pconfig['ipaddrv6'] = null; } - /* - locate PPP details (if any) - */ + /* locate PPP details (if any) */ $pppid = count($a_ppps); foreach ($a_ppps as $key => $ppp) { if ($a_interfaces[$if]['if'] == $ppp['if']) { @@ -472,9 +470,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { $pppid = count($a_ppps); } - /* - Wireless interface - */ if (isset($a_interfaces[$if]['wireless'])) { /* Sync first to be sure it displays the actual settings that will be used */ interface_sync_wireless_clones($a_interfaces[$if], false); @@ -2289,10 +2284,10 @@ include("head.inc");