aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-09-03 05:35:43 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-09-03 05:35:43 +0000
commit73242900e30b24da56f5ebba5e1ab25dd6cfe8ae (patch)
treece21d3a71a7d340fa48c2a09a200bf854a62082f
parent4027ebea1951b35cfa8159009a352700f35c5090 (diff)
downloadupstream-73242900e30b24da56f5ebba5e1ab25dd6cfe8ae.tar.gz
upstream-73242900e30b24da56f5ebba5e1ab25dd6cfe8ae.tar.bz2
upstream-73242900e30b24da56f5ebba5e1ab25dd6cfe8ae.zip
fix ipcalc (off by 1)
SVN-Revision: 4737
-rwxr-xr-xopenwrt/package/base-files/default/bin/ipcalc3
1 files changed, 1 insertions, 2 deletions
diff --git a/openwrt/package/base-files/default/bin/ipcalc b/openwrt/package/base-files/default/bin/ipcalc
index 23af6a0c3b..e8efa6b96c 100755
--- a/openwrt/package/base-files/default/bin/ipcalc
+++ b/openwrt/package/base-files/default/bin/ipcalc
@@ -1,5 +1,4 @@
#!/bin/sh
-# Copyright (C) 2006 OpenWrt.org
awk -f /usr/lib/common.awk -f - $* <<EOF
BEGIN {
@@ -27,7 +26,7 @@ BEGIN {
if (ARGC > 3) {
print "START="int2ip(start)
- print "END="int2ip(end)
+ print "END="int2ip(end-1)
}
}
EOF