diff options
author | stilez <stilez@users.noreply.github.com> | 2016-01-13 12:05:38 +0000 |
---|---|---|
committer | stilez <stilez@users.noreply.github.com> | 2016-01-13 12:05:38 +0000 |
commit | 9f8266cd08ad4f84ed71e515099720fe3781fdc6 (patch) | |
tree | 4894939b303c99af82591725e27e2cfdff5e6df7 /src/etc/inc/util.inc | |
parent | e8d5be8e6d5587e8b7c99411d0c18fb9a2821ee6 (diff) | |
download | pfsense-9f8266cd08ad4f84ed71e515099720fe3781fdc6.zip pfsense-9f8266cd08ad4f84ed71e515099720fe3781fdc6.tar.gz |
fix 4 should be 6 (thanks, good catch)
Diffstat (limited to 'src/etc/inc/util.inc')
-rw-r--r-- | src/etc/inc/util.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/etc/inc/util.inc b/src/etc/inc/util.inc index 3181fc3..cf15fc8 100644 --- a/src/etc/inc/util.inc +++ b/src/etc/inc/util.inc @@ -874,10 +874,10 @@ function check_subnetsv4_overlap($subnet1, $bits1, $subnet2, $bits2) { /* find out whether two IPv6 CIDR subnets overlap. Note: CIDR overlap means sn1/sn2 are identical or one is included in other. So sn using largest $bits will be the same */ -function check_subnetsv4_overlap($subnet1, $bits1, $subnet2, $bits2) { +function check_subnetsv6_overlap($subnet1, $bits1, $subnet2, $bits2) { $largest_sn = max($bits1, $bits2); - $subnetv4_start1 = gen_subnetv6($subnet1, $largest_sn); - $subnetv4_start2 = gen_subnetv6($subnet1, $largest_sn); + $subnetv6_start1 = gen_subnetv6($subnet1, $largest_sn); + $subnetv6_start2 = gen_subnetv6($subnet1, $largest_sn); if($subnetv6_start1 == '' || $subnetv6_start2 == '') { // One or both args is not a valid IPv6 subnet |