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)
commit17a90a31188770ca7506fc4596b8e30b4b9e6b42
tree59e5202dfc60c257340cb75a39a411d8cf2a9ab7
parent0ac28bbe584b2c2503aaa15d73925b13ca162d8d
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.

SVN-Revision: 34875
package/base-files/files/bin/ipcalc.sh