projects
/
openwrt
/
svn-archive
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4fc969a
)
fix ipcalc output
author
Mike Baker
<mbm@openwrt.org>
Fri, 24 Mar 2006 14:21:48 +0000
(14:21 +0000)
committer
Mike Baker
<mbm@openwrt.org>
Fri, 24 Mar 2006 14:21:48 +0000
(14:21 +0000)
SVN-Revision: 3473
openwrt/package/base-files/default/usr/lib/common.awk
patch
|
blob
|
history
diff --git
a/openwrt/package/base-files/default/usr/lib/common.awk
b/openwrt/package/base-files/default/usr/lib/common.awk
index 250a70f6416695efed9d660e3f383c7e28845e18..a9ab0f1645ac980330593f40cc7edddb394904fc 100644
(file)
--- a/
openwrt/package/base-files/default/usr/lib/common.awk
+++ b/
openwrt/package/base-files/default/usr/lib/common.awk
@@
-58,9
+58,9
@@
function ip2int(ip) {
return ret
}
-function int2ip(ip,ret) {
+function int2ip(ip,ret
,x
) {
ret=and(ip,255)
ip=rshift(ip,8)
- for(
;ip;ret=and(ip,255)"."ret,ip=rshift(ip,8));
+ for(
x<3;ret=and(ip,255)"."ret,ip=rshift(ip,8),x++)
return ret
}