2 LuCI - Lua Configuration Interface
3 Copyright
2008-
2009 Steven Barth
<steven@midlink.org
>
4 Copyright
2008-
2009 Jo-Philipp Wich
<xm@subsignal.org
>
6 Licensed under the Apache License, Version
2.0 (the
"License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-
2.0
23 <div class=
"cbi-map" id=
"cbi-conntrack">
24 <h2><a id=
"content" name=
"content"><%:Active Connections%
></a></h2>
25 <div class=
"cbi-map-descr"><%:This page gives an overview over currently active network connections.%
></div>
27 <fieldset class=
"cbi-section" id=
"cbi-table-table">
29 <div class=
"cbi-section-node">
30 <table class=
"cbi-section-table">
31 <tr class=
"cbi-section-table-titles">
32 <th class=
"cbi-section-table-cell"><%_
<abbr title=
"Internet Protocol Version 4">IPv4
</abbr>-Address%
></th>
33 <th class=
"cbi-section-table-cell"><%_
<abbr title=
"Media Access Control">MAC
</abbr>-Address%
></th>
34 <th class=
"cbi-section-table-cell"><%:Interface%
></th>
37 <% luci.sys.net.arptable(function(e) %
>
38 <tr class=
"cbi-section-table-row cbi-rowstyle-<%=(style and 1 or 2)%>">
39 <td class=
"cbi-value-field"><%=e[
"IP address"]%
></td>
40 <td class=
"cbi-value-field"><%=e[
"HW address"]%
></td>
41 <td class=
"cbi-value-field"><%=e[
"Device"]%
></td>
43 <% style = not style; end) %
>
49 <fieldset class=
"cbi-section" id=
"cbi-table-table">
50 <legend><%:Active Connections%
></legend>
51 <div class=
"cbi-section-node">
52 <table class=
"cbi-section-table">
53 <tr class=
"cbi-section-table-titles">
54 <th class=
"cbi-section-table-cell"><%:Network%
></th>
55 <th class=
"cbi-section-table-cell"><%:Protocol%
></th>
56 <th class=
"cbi-section-table-cell"><%:Source%
></th>
57 <th class=
"cbi-section-table-cell"><%:Destination%
></th>
60 <% style = true; luci.sys.net.conntrack(function(c) %
>
61 <tr class=
"cbi-section-table-row cbi-rowstyle-<%=(style and 1 or 2)%>">
62 <td class=
"cbi-value-field"><%=c.layer3:upper()%
></td>
63 <td class=
"cbi-value-field"><%=c.layer4:upper()%
></td>
64 <td class=
"cbi-value-field"><%=c.src%
></td>
65 <td class=
"cbi-value-field"><%=c.dst%
></td>
67 <% style = not style; end) %
>