projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59b3711
)
libs/sys: workaround for Lua number overflow in ipv6 route metrics
author
Jo-Philipp Wich
<jow@openwrt.org>
Mon, 8 Mar 2010 00:49:39 +0000
(
00:49
+0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Mon, 8 Mar 2010 00:49:39 +0000
(
00:49
+0000)
libs/sys/luasrc/sys.lua
patch
|
blob
|
history
diff --git
a/libs/sys/luasrc/sys.lua
b/libs/sys/luasrc/sys.lua
index d9fe5ab25bfd83f901d633ebdabbffba0d9510fc..f30a2b679c15e6a29c5b4a1d6ad51ee54f75edaf 100644
(file)
--- a/
libs/sys/luasrc/sys.lua
+++ b/
libs/sys/luasrc/sys.lua
@@
-463,7
+463,11
@@
function net.routes6(callback)
refcount = tonumber(refcnt, 16),
usecount = tonumber(usecnt, 16),
flags = tonumber(flags, 16),
- device = dev
+ device = dev,
+
+ -- lua number is too small for storing the metric
+ -- add a metric_raw field with the original content
+ metric_raw = metric
}
if callback then