summaryrefslogtreecommitdiffhomepage
path: root/modules/freifunk/src/view/public_status/routes.htm
blob: 85b02212d7ce86ebf33005a53d94703f25d2b766 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<%+header%>
<h1><%:routes Routen%></h1>

<br />
<table cellspacing="0" cellpadding="6" class="smalltext">
<tr>
<th><%:target Ziel%></th>
<th><%:netmask Netzmaske%></th>
<th><%:gateway Gateway%></th>
<th><%:metric Metrik%></th>
<th><%:iface Schnittstelle%></th>
</tr>
<%
local routes = ffluci.sys.net.routes()

for i, r in pairs(routes) do
%>
<tr>
<td><%=ffluci.sys.net.hexip4(r.Destination)%></td>
<td><%=ffluci.sys.net.hexip4(r.Mask)%></td>
<td><%=ffluci.sys.net.hexip4(r.Gateway)%></td>
<td><%=r.Metric%></td>
<td><%=r.Iface%></td>
</tr>
<% end %>
</table>
<br />
<%+footer%>