diff options
author | Roy Marples <roy@marples.name> | 2007-04-13 10:30:57 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-04-13 10:30:57 +0000 |
commit | eabcb48f717c566832d93c79e04fe3bab1f381b1 (patch) | |
tree | 53575bc944cd3b57405ed47aca576c913307ad33 /sh | |
parent | a07be0513af5181f3e2a57f9e313f4a08740c3f4 (diff) |
netmask -> CIDR is worked out correctly #174341.
Diffstat (limited to 'sh')
-rwxr-xr-x | sh/net.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -86,7 +86,7 @@ _netmask2cidr() { local IFS=. for i in $1; do while [ ${i} != "0" ] ; do - len=$((${len} + 1)) + len=$((${len} + ${i} % 2)) i=$((${i} >> 1)) done done |