summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2015-06-04 17:07:39 -0300
committerRenato Botelho <garga@FreeBSD.org>2015-06-04 17:07:39 -0300
commit3a19fd4a84d358ff8e6c9eedcad5b11f7f570fa8 (patch)
tree3f543bc09bc89281f1ba349ed766aa81b45d2423 /etc/inc
parent16628aa0631bbdceae27f3d2f7ba1fa44ce3b296 (diff)
parentaa18183338b5b911833fb94c11664d33c74253f4 (diff)
downloadpfsense-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.inc8
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 */
OpenPOWER on IntegriCloud