base-files: ipcalc.sh: fix broken calculations on 64bit systems
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 23 Dec 2012 22:18:43 +0000 (22:18 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 23 Dec 2012 22:18:43 +0000 (22:18 +0000)
commita6a3bd8d5721c4cff1ec5d1d455f859bb322bc80
tree59e5202dfc60c257340cb75a39a411d8cf2a9ab7
parentf19b976355fbf898fe48689bfff8184fc82c8181
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