base-files: ipcalc.sh: fix broken calculations on 64bit systems
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 23 Dec 2012 22:18:43 +0000 (22:18 +0000)
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 23 Dec 2012 22:18:43 +0000 (22:18 +0000)
commitafc4535cfc5d687912501ccf7103ae6975841705
tree59e5202dfc60c257340cb75a39a411d8cf2a9ab7
parentbb460376f5a614f97e4b7d26ea7742f7c123b4c4
base-files: ipcalc.sh: fix broken calculations on 64bit systems

Calculate complements by using awk's xor() function with a mask of 0xffffffff
instead of relying on the compl() function which appears to produce broken
results on certain 64bit architectures.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34875 3c298f89-4303-0410-b956-a3cf2f4a3e73
package/base-files/files/bin/ipcalc.sh