diff options
author | bcyrill <cyrill@bannwart.info> | 2013-02-06 12:38:29 +0100 |
---|---|---|
committer | bcyrill <cyrill@bannwart.info> | 2013-02-06 12:38:29 +0100 |
commit | bd92ede8f6202489b7ac367ffec5048c32baeb46 (patch) | |
tree | 5d97d0ee38defc9c4b7a8d895d5cd82e3d80584a /etc | |
parent | dbea91b3570111695644e76e89d02a0d32dcc0ab (diff) | |
download | pfsense-bd92ede8f6202489b7ac367ffec5048c32baeb46.zip pfsense-bd92ede8f6202489b7ac367ffec5048c32baeb46.tar.gz |
IPv6 subnet check
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/util.inc | 2 |
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 */ |