diff options
author | Seth Mos <seth.mos@dds.nl> | 2011-02-03 22:38:54 +0100 |
---|---|---|
committer | Seth Mos <seth.mos@dds.nl> | 2011-02-03 22:38:54 +0100 |
commit | a23a99cb13af898ec662872dcd2ba544ea4ccbad (patch) | |
tree | fab17e15c07cf0a867e7983c31ba131b1b4625f4 /etc/inc/interfaces.inc | |
parent | 6376913c3e85a923e32d5f4441cb768e28c3af8e (diff) | |
download | pfsense-a23a99cb13af898ec662872dcd2ba544ea4ccbad.zip pfsense-a23a99cb13af898ec662872dcd2ba544ea4ccbad.tar.gz |
Lie to the system and report a subnetmask of 127 instead of 128. This should fix the subnetmask check
Diffstat (limited to 'etc/inc/interfaces.inc')
-rw-r--r-- | etc/inc/interfaces.inc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 05427c7..c12f0f6 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -3424,10 +3424,12 @@ function find_interface_ipv6($interface, $flush = false) $parts = explode(" ", $line); if(! preg_match("/fe80::/", $parts[1])) { $ifinfo['ipaddrv6'] = $parts[1]; - if($parts[2] == "-->") + if($parts[2] == "-->") { + $parts[5] = "127"; $ifinfo['subnetbitsv6'] = $parts[5]; - else + } else { $ifinfo['subnetbitsv6'] = $parts[3]; + } } } } @@ -3473,10 +3475,12 @@ function find_interface_subnetv6($interface, $flush = false) $parts = explode(" ", $line); if(! preg_match("/fe80::/", $parts[1])) { $ifinfo['ipaddrv6'] = $parts[1]; - if($parts[2] == "-->") + if($parts[2] == "-->") { + $parts[5] = "127"; $ifinfo['subnetbitsv6'] = $parts[5]; - else + } else { $ifinfo['subnetbitsv6'] = $parts[3]; + } } } } |