diff options
author | Renato Botelho <garga@FreeBSD.org> | 2015-06-04 17:07:39 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2015-06-04 17:07:39 -0300 |
commit | 3a19fd4a84d358ff8e6c9eedcad5b11f7f570fa8 (patch) | |
tree | 3f543bc09bc89281f1ba349ed766aa81b45d2423 /etc/inc | |
parent | 16628aa0631bbdceae27f3d2f7ba1fa44ce3b296 (diff) | |
parent | aa18183338b5b911833fb94c11664d33c74253f4 (diff) | |
download | pfsense-3a19fd4a84d358ff8e6c9eedcad5b11f7f570fa8.zip pfsense-3a19fd4a84d358ff8e6c9eedcad5b11f7f570fa8.tar.gz |
Merge pull request #1706 from phil-davis/setupwizardlan
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/util.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/inc/util.inc b/etc/inc/util.inc index fa06658..c4717b3 100644 --- a/etc/inc/util.inc +++ b/etc/inc/util.inc @@ -440,13 +440,13 @@ function find_smallest_cidr_v4($number) { } /* Return the previous IP address before the given address */ -function ip_before($ip) { - return long2ip32(ip2long($ip)-1); +function ip_before($ip, $offset = 1) { + return long2ip32(ip2long($ip) - $offset); } /* Return the next IP address after the given address */ -function ip_after($ip) { - return long2ip32(ip2long($ip)+1); +function ip_after($ip, $offset = 1) { + return long2ip32(ip2long($ip) + $offset); } /* Return true if the first IP is 'before' the second */ |