summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorbcyrill <cyrill@bannwart.info>2013-02-06 12:38:29 +0100
committerbcyrill <cyrill@bannwart.info>2013-02-06 12:38:29 +0100
commitbd92ede8f6202489b7ac367ffec5048c32baeb46 (patch)
tree5d97d0ee38defc9c4b7a8d895d5cd82e3d80584a /etc
parentdbea91b3570111695644e76e89d02a0d32dcc0ab (diff)
downloadpfsense-bd92ede8f6202489b7ac367ffec5048c32baeb46.zip
pfsense-bd92ede8f6202489b7ac367ffec5048c32baeb46.tar.gz
IPv6 subnet check
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/util.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/util.inc b/etc/inc/util.inc
index d7019de..74b11ce 100644
--- a/etc/inc/util.inc
+++ b/etc/inc/util.inc
@@ -1217,7 +1217,7 @@ function check_subnetsv6_overlap($subnet1, $bits1, $subnet2, $bits2) {
$sub2_min = gen_subnetv6($subnet2, $bits2);
$sub2_max = gen_subnetv6_max($subnet2, $bits2);
- return (is_inrange_v6($sub1_min, $sub2_min, $sub2_max) || is_inrange_v6($sub1_max, $sub2_min, $sub2_max));
+ return (is_inrange_v6($sub1_min, $sub2_min, $sub2_max) || is_inrange_v6($sub1_max, $sub2_min, $sub2_max) || is_inrange_v6($sub2_min, $sub1_min, $sub1_max));
}
/* compare two IP addresses */
OpenPOWER on IntegriCloud