summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-full/luasrc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-03-08 00:52:21 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-03-08 00:52:21 +0000
commit3c39da44fbbdd418fd8c2d3e35aa0fa907887fb0 (patch)
tree4cb5009578f400cb9319cfc8c2c027b1274bc0ea /modules/admin-full/luasrc
parent6a02931893ff7ecabf1f48597f783a18ebab92cd (diff)
modules/admin-full: workaround integer overflow in ipv6 route display
Diffstat (limited to 'modules/admin-full/luasrc')
-rw-r--r--modules/admin-full/luasrc/view/admin_status/routes.htm9
1 files changed, 2 insertions, 7 deletions
diff --git a/modules/admin-full/luasrc/view/admin_status/routes.htm b/modules/admin-full/luasrc/view/admin_status/routes.htm
index f85919671..c3a0fb3a0 100644
--- a/modules/admin-full/luasrc/view/admin_status/routes.htm
+++ b/modules/admin-full/luasrc/view/admin_status/routes.htm
@@ -68,15 +68,10 @@ $Id$
</tr>
<% luci.sys.net.routes6(function(rt) %>
<tr class="cbi-section-table-row cbi-rowstyle-<%=(style and 1 or 2)%>">
- <td class="cbi-value-field"><%=luci.tools.webadmin.iface_get_network(rt.device) or rt.device%></td>
+ <td class="cbi-value-field"><%=luci.tools.webadmin.iface_get_network(rt.device) or '(' .. rt.device .. ')'%></td>
<td class="cbi-value-field"><%=rt.dest:string()%></td>
<td class="cbi-value-field"><%=rt.source:string()%></td>
- <td class="cbi-value-field"><%-
- local metr = rt.metric
- local lower = bit.band(metr, 0xffff)
- local higher = bit.rshift(bit.band(metr, 0xffff0000), 16)
- write(string.format("%04X%04X", higher, lower))
- -%></td>
+ <td class="cbi-value-field"><%=rt.metric_raw:upper()%></td>
</tr>
<% style = not style; end) %>
</table>