X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=modules%2Fniu%2Fluasrc%2Fview%2Fniu%2Ftraffic%2Fconntrack.htm;fp=modules%2Fniu%2Fluasrc%2Fview%2Fniu%2Ftraffic%2Fconntrack.htm;h=09b1d6b1cfe618cf6e3ffaf49ff7dd050bbbf11f;hp=0000000000000000000000000000000000000000;hb=2176dae3a0a648805f7de447e4af7ead8b7655dd;hpb=efe5fc77f9c76ca75ae0e4c1735065589d5047c8 diff --git a/modules/niu/luasrc/view/niu/traffic/conntrack.htm b/modules/niu/luasrc/view/niu/traffic/conntrack.htm new file mode 100644 index 000000000..09b1d6b1c --- /dev/null +++ b/modules/niu/luasrc/view/niu/traffic/conntrack.htm @@ -0,0 +1,75 @@ +<%# +LuCI - Lua Configuration Interface +Copyright 2008-2009 Steven Barth +Copyright 2008-2009 Jo-Philipp Wich + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +$Id$ + +-%> + +<%- + local sys = require "luci.sys" + local style = true +-%> + +<%+header%> + +
+

<%:Active Connections%>

+
<%:This page gives an overview over currently active network connections.%>
+ +
+ ARP +
+ + + + + + + + <% sys.net.arptable(function(e) %> + + + + + + <% style = not style; end) %> +
<%_IPv4-Address%><%_MAC-Address%><%:Interface%>
<%=e["IP address"]%><%=e["HW address"]%><%=e["Device"]%>
+
+
+
+ +
+ <%:Active Connections%> +
+ + + + + + + + + <% style = true; sys.net.conntrack(function(c) %> + + + + + + + <% style = not style; end) %> +
<%:Network%><%:Protocol%><%:Source%><%:Destination%>
<%=c.layer3:upper()%><%=c.layer4:upper()%><%=c.src%><%=c.dst%>
+
+
+
+
+ +<%+footer%> +