summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-04-14 14:36:25 -0300
committerRenato Botelho <garga@FreeBSD.org>2013-04-14 14:36:25 -0300
commitd28cd156d3d5d27c5ae621a9f9d348a516dad67e (patch)
tree29381c1f61c56f252b728eeec194128c1a9537e4 /etc
parent612170a7ac870d1276d967027e8fef72a185a270 (diff)
downloadpfsense-d28cd156d3d5d27c5ae621a9f9d348a516dad67e.zip
pfsense-d28cd156d3d5d27c5ae621a9f9d348a516dad67e.tar.gz
Make fe80: addresses check case insensitive
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/gwlb.inc2
-rw-r--r--etc/inc/interfaces.inc6
-rw-r--r--etc/inc/system.inc2
3 files changed, 5 insertions, 5 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc
index adce745..4e9ca84 100644
--- a/etc/inc/gwlb.inc
+++ b/etc/inc/gwlb.inc
@@ -165,7 +165,7 @@ EOD;
continue; //Skip this target
} else if (is_ipaddrv6($gateway['gateway'])) {
/* link locals really need a different src ip */
- if(preg_match("/fe80::/i", $gateway['gateway'])) {
+ if(preg_match("/fe80:/i", $gateway['gateway'])) {
$linklocal = explode("%", find_interface_ipv6_ll($gateway['interface'], true));
$gwifip = $linklocal[0];
$ifscope = "%". $linklocal[1];
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 0ad8211..c35c297 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -4337,7 +4337,7 @@ function find_interface_ipv6($interface, $flush = false) {
foreach($output as $line) {
if(preg_match("/inet6/", $line)) {
$parts = explode(" ", $line);
- if(! preg_match("/fe80::/", $parts[1])) {
+ if(! preg_match("/fe80:/i", $parts[1])) {
$ifinfo['ipaddrv6'] = $parts[1];
if($parts[2] == "-->") {
$parts[5] = "126";
@@ -4376,7 +4376,7 @@ function find_interface_ipv6_ll($interface, $flush = false) {
foreach($output as $line) {
if(preg_match("/inet6/", $line)) {
$parts = explode(" ", $line);
- if(preg_match("/fe80::/", $parts[1])) {
+ if(preg_match("/fe80:/i", $parts[1])) {
$partsaddress = explode("%", $parts[1]);
$ifinfo['linklocal'] = $partsaddress[0];
}
@@ -4422,7 +4422,7 @@ function find_interface_subnetv6($interface, $flush = false) {
$line = trim($line);
if(preg_match("/inet6/", $line)) {
$parts = explode(" ", $line);
- if(! preg_match("/fe80::/", $parts[1])) {
+ if(! preg_match("/fe80:/i", $parts[1])) {
$ifinfo['ipaddrv6'] = $parts[1];
if($parts[2] == "-->") {
$parts[5] = "126";
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index 6299922..58793eb 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -440,7 +440,7 @@ function system_routing_configure($interface = "") {
;
else if (($interfacegwv6 <> "bgpd") && (is_ipaddrv6($gatewayipv6))) {
$ifscope = "";
- if(preg_match("/fe80::/i", $gatewayipv6))
+ if(preg_match("/fe80:/i", $gatewayipv6))
$ifscope = "%{$defaultifv6}";
log_error("ROUTING: setting IPv6 default route to {$gatewayipv6}{$ifscope}");
mwexec("/sbin/route change -inet6 default " . escapeshellarg($gatewayipv6) ."{$ifscope}");
OpenPOWER on IntegriCloud