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)
commitab6e2e69287c606f4459c558becc26cea1cabbfc
tree9a6f99d4fda4722668656eedc70d1d576d484b28
parent2c05915b2406c3f5a0acca92789cd307edfcd145
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