From 3c39da44fbbdd418fd8c2d3e35aa0fa907887fb0 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 8 Mar 2010 00:52:21 +0000 Subject: [PATCH] modules/admin-full: workaround integer overflow in ipv6 route display --- modules/admin-full/luasrc/view/admin_status/routes.htm | 9 ++------- 1 file 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$ <% luci.sys.net.routes6(function(rt) %> - <%=luci.tools.webadmin.iface_get_network(rt.device) or rt.device%> + <%=luci.tools.webadmin.iface_get_network(rt.device) or '(' .. rt.device .. ')'%> <%=rt.dest:string()%> <%=rt.source:string()%> - <%- - 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)) - -%> + <%=rt.metric_raw:upper()%> <% style = not style; end) %> -- 2.25.1