Revision 3c5e10fc
Added by Seth Mos over 14 years ago
etc/inc/interfaces.inc | ||
---|---|---|
2578 | 2578 |
|
2579 | 2579 |
|
2580 | 2580 |
if (!$g['booting'] && !substr($realif, 0, 4) == "ovpn") { |
2581 |
/* remove all IPv4 addresses */ |
|
2581 |
/* remove all IPv4 and IPv6 addresses */
|
|
2582 | 2582 |
while (mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " -alias", true) == 0); |
2583 | 2583 |
while (mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " inet6 -alias", true) == 0); |
2584 |
/* Disable Accepting router advertisements unless specifically requested */ |
|
2585 |
while (mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " inet6 -accept_rtadv") == 0); |
|
2584 | 2586 |
|
2585 | 2587 |
switch ($wancfg['ipaddr']) { |
2586 | 2588 |
case 'pppoe': |
... | ... | |
2741 | 2743 |
default: |
2742 | 2744 |
if ($wancfg['ipaddrv6'] <> "" && $wancfg['subnetv6'] <> "") { |
2743 | 2745 |
pfSense_interface_setaddress($realif, "{$wancfg['ipaddrv6']}/{$wancfg['subnetv6']}"); |
2746 |
// FIXME: Add IPv6 Support to the pfSense module |
|
2744 | 2747 |
mwexec("/sbin/ifconfig {$realif} inet6 {$wancfg['ipaddrv6']} prefixlen {$wancfg['subnetv6']} "); |
2745 | 2748 |
} |
2746 | 2749 |
break; |
... | ... | |
3563 | 3566 |
/* Setup IP cache */ |
3564 | 3567 |
if (!isset($interface_ipv6_arr_cache[$interface]) or $flush) { |
3565 | 3568 |
$ifinfo = pfSense_get_interface_addresses($interface); |
3569 |
// FIXME: Add IPv6 support to the pfSense module |
|
3566 | 3570 |
exec("/sbin/ifconfig {$interface} inet6", $output); |
3567 | 3571 |
foreach($output as $line) { |
3568 | 3572 |
if(preg_match("/inet6/", $line)) { |
... | ... | |
3614 | 3618 |
|
3615 | 3619 |
if (!isset($interface_snv6_arr_cache[$interface]) or $flush) { |
3616 | 3620 |
$ifinfo = pfSense_get_interface_addresses($interface); |
3621 |
// FIXME: Add IPv6 support to the pfSense module |
|
3617 | 3622 |
exec("/sbin/ifconfig {$interface} inet6", $output); |
3618 | 3623 |
foreach($output as $line) { |
3619 | 3624 |
if(preg_match("/inet6/", $line)) { |
Also available in: Unified diff
Add debugging notes so that we can easily fix this when IPv6 support is added to the pfSense module.
Remove the Accept router advertisement from all interfaces unless we enable them