Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | base-files: ipcalc.sh: support bit length as netmask parameter | Jo-Philipp Wich | 2013-12-16 | 1 | -1/+5 |
| | | | | SVN-Revision: 39100 | ||||
* | base-files: fix whitespaces | Luka Perkov | 2013-12-09 | 1 | -1/+1 |
| | | | | | | Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 39006 | ||||
* | base-files: ipcalc.sh: fix broken calculations on 64bit systems | Jo-Philipp Wich | 2012-12-23 | 1 | -5/+10 |
| | | | | | | | | 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 | ||||
* | ipcalc.sh CIDR notation Hi, | Jo-Philipp Wich | 2011-05-18 | 1 | -6/+15 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the attached patch makes ipcalc.sh accept IP/Netmask combinations in CIDR notation. Before you could only do: # sh ipcalc.sh 192.168.0.0 255.255.255.0 1 10 IP=192.168.0.0 NETMASK=255.255.255.0 BROADCAST=192.168.0.255 NETWORK=192.168.0.0 PREFIX=24 START=192.168.0.1 END=192.168.0.11 with this patch you can also execute it with: sh ipcalc.sh 192.168.0.0/24 1 10 IP=192.168.0.0 NETMASK=255.255.255.0 BROADCAST=192.168.0.255 NETWORK=192.168.0.0 PREFIX=24 START=192.168.0.1 END=192.168.0.11 The patch is based on #1260 [1], i just changed one line to calculate the START end END ips right. I wonder why that never got included. If there is no reason not to do i would like to ask you to commit that patch, because its a functionality i (and probably others) miss quite often. Btw, i also fixed 4 useless tabs, that might look a bit strange in the patch. Regards, Manuel SVN-Revision: 26930 | ||||
* | base-files: remove a stale reference to /usr/lib/common.awk (thx, swalker) | Felix Fietkau | 2011-02-13 | 1 | -1/+1 |
| | | | | SVN-Revision: 25528 | ||||
* | base-files: /usr/lib/common.awk is only used by /bin/ipcalc.sh, move the ↵ | Felix Fietkau | 2011-02-13 | 1 | -0/+21 |
| | | | | | | code there SVN-Revision: 25495 | ||||
* | base-files: ipcalc.sh: fix off-by-one in range-calculation | Jo-Philipp Wich | 2009-06-29 | 1 | -1/+1 |
| | | | | SVN-Revision: 16619 | ||||
* | upgrade dnsmasq to latest version, rewrite dnsmasq init script for uci, ↵ | Felix Fietkau | 2007-03-17 | 1 | -0/+32 |
rename /bin/ipcalc to /bin/ipcalc.sh (fixes #1452) SVN-Revision: 6595 |