projects
/
openwrt
/
svn-archive
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4354859
)
add IP variable to ipcalc output
author
Felix Fietkau
<nbd@openwrt.org>
Tue, 21 Mar 2006 16:53:59 +0000
(16:53 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Tue, 21 Mar 2006 16:53:59 +0000
(16:53 +0000)
SVN-Revision: 3436
openwrt/package/base-files/default/bin/ipcalc
patch
|
blob
|
history
diff --git
a/openwrt/package/base-files/default/bin/ipcalc
b/openwrt/package/base-files/default/bin/ipcalc
index 8d12545b65def0c67704a70fd38de90beed31608..9c48354494cb19d026fca125e04d3ffa4d86e51a 100755
(executable)
--- a/
openwrt/package/base-files/default/bin/ipcalc
+++ b/
openwrt/package/base-files/default/bin/ipcalc
@@
-15,6
+15,7
@@
BEGIN {
limit=or(network,compl(netmask))-1
if (end>limit) end=limit
+ print "IP="int2ip(ipaddr)
print "NETMASK="int2ip(netmask)
print "BROADCAST="int2ip(broadcast)
print "NETWORK="int2ip(network)