X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/1c53c804001aeefd8ec5663511f8e973a2622c40..HEAD:/package/base-files/files/bin/ipcalc.sh diff --git a/package/base-files/files/bin/ipcalc.sh b/package/base-files/files/bin/ipcalc.sh index e4826672e..d6ef16870 100755 --- a/package/base-files/files/bin/ipcalc.sh +++ b/package/base-files/files/bin/ipcalc.sh @@ -1,6 +1,6 @@ #!/bin/sh -awk -f /usr/lib/common.awk -f - $* <limit) end=limit @@ -41,10 +50,10 @@ BEGIN { print "BROADCAST="int2ip(broadcast) print "NETWORK="int2ip(network) print "PREFIX="32-bitcount(compl(netmask)) - + # range calculations: # ipcalc - + if (ARGC > 3) { print "START="int2ip(start) print "END="int2ip(end)