X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/b0dfa673879dafac9e1a9ca9e46009a1eb5b03c9..b668d3deb84d791f5ca5ecd5544658457c44b7b0:/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 318980e5a..d6ef16870 100755 --- a/package/base-files/files/bin/ipcalc.sh +++ b/package/base-files/files/bin/ipcalc.sh @@ -1,16 +1,46 @@ #!/bin/sh -awk -f /usr/lib/common.awk -f - $* <limit) end=limit @@ -20,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)