add IP variable to ipcalc output
authorFelix Fietkau <nbd@openwrt.org>
Tue, 21 Mar 2006 16:53:59 +0000 (16:53 +0000)
committerFelix 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

index 8d12545b65def0c67704a70fd38de90beed31608..9c48354494cb19d026fca125e04d3ffa4d86e51a 100755 (executable)
@@ -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)