aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVince <github@darkain.com>2012-10-10 14:27:43 -0700
committerVince <github@darkain.com>2012-10-10 14:27:43 -0700
commit0d249b9d1b59555bb97491b48743d8455ff3039f (patch)
treeb219dc71fedb1d9191e9d7df8f2ee30f0bbe4765
parenta32fc3f11a09385eaf7709d99158363cdbf5e608 (diff)
downloadpfsense-packages-0d249b9d1b59555bb97491b48743d8455ff3039f.tar.gz
pfsense-packages-0d249b9d1b59555bb97491b48743d8455ff3039f.tar.bz2
pfsense-packages-0d249b9d1b59555bb97491b48743d8455ff3039f.zip
Small cleanup for readability
Small cleanup for readability
-rwxr-xr-xconfig/pf-blocker/pfblocker.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/pf-blocker/pfblocker.inc b/config/pf-blocker/pfblocker.inc
index 53e2453e..58b93bb5 100755
--- a/config/pf-blocker/pfblocker.inc
+++ b/config/pf-blocker/pfblocker.inc
@@ -70,7 +70,7 @@ function pfblocker_Range2CIDR($ip_min, $ip_max) {
if ($bits < 0)
return "";
#identify first ip on range network
- $network=long2ip($ip_min_long & (2<<32)-(2<<(31-$bits)));
+ $network=long2ip( $ip_min_long & ((1<<32)-(1<<(32-$bits))-1) );
#print decbin($ip_min_long)."\n".$network."\n";
return $network . "/". $bits;
}