<%# 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%>