X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;f=modules%2Fadmin-full%2Fluasrc%2Fview%2Fadmin_status%2Froutes.htm;h=4e7287b70524e04b297c4538594345a8165d377c;hb=70e5124557fc642e1e5fec681524f481e64c358a;hp=dcfb4ec62a628aa52862a8fac9b269c64d6c15fc;hpb=b0b28b970fe5efede10dff0f1e379fbab5b333ca;p=project%2Fluci.git diff --git a/modules/admin-full/luasrc/view/admin_status/routes.htm b/modules/admin-full/luasrc/view/admin_status/routes.htm index dcfb4ec62..4e7287b70 100644 --- a/modules/admin-full/luasrc/view/admin_status/routes.htm +++ b/modules/admin-full/luasrc/view/admin_status/routes.htm @@ -26,7 +26,29 @@ $Id$

<%:Routes%>

-
<%:a_n_routes1%>
+
<%:The following rules are currently active on this system.%>
+ +
+ ARP +
+ + + + + + + + <% luci.sys.net.arptable(function(e) %> + + + + + + <% style = not style; end) %> +
<%_IPv4-Address%><%_MAC-Address%><%:Interface%>
<%=e["IP address"]%><%=e["HW address"]%><%=e["Device"]%>
+
+
+
<%_Active IPv4-Routes%> @@ -36,15 +58,13 @@ $Id$ <%:Network%> <%:Target%> - <%_IPv4-Netmask%> <%_IPv4-Gateway%> <%:Metric%> <% luci.sys.net.routes(function(rt) %> <%=luci.tools.webadmin.iface_get_network(rt.device) or rt.device%> - <%=rt.dest:network():string()%> - <%=rt.dest:mask():string()%> + <%=rt.dest:string()%> <%=rt.gateway:string()%> <%=rt.metric%> @@ -54,7 +74,10 @@ $Id$

- <% if nixio.fs.access("/proc/net/ipv6_route") then style = true %> + <% if nixio.fs.access("/proc/net/ipv6_route") then + style = true + fe80 = luci.ip.IPv6("fe80::/10") + %>
<%_Active IPv6-Routes%> @@ -66,17 +89,12 @@ $Id$ <%_IPv6-Gateway%> <%:Metric%> - <% luci.sys.net.routes6(function(rt) %> + <% luci.sys.net.routes6(function(rt) if fe80:contains(rt.dest) then return end %> - <%=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) %>