2 LuCI - Lua Configuration Interface
3 Copyright
2008 Steven Barth
<steven@midlink.org
>
4 Copyright
2008 Jo-Philipp Wich
<xm@leipzig.freifunk.net
>
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
16 <h2><a id=
"content" name=
"content"><%:OLSR connections%
></a></h2>
17 <p><%:Overview of currently established OLSR connections%
></p>
19 <table class=
"smalltext" cellspacing=
"0" cellpadding=
"6">
21 <th><%:Neighbour IP%
></th>
22 <th><%:Hostname%
></th>
23 <th><%:Local interface IP%
></th>
29 <% for k, link in ipairs(links) do
30 local color =
"#bb3333"
32 link.Cost = tonumber(link.Cost) or
0
33 if link.Cost ==
0 then
35 elseif link.Cost <
4 then
37 elseif link.Cost <
10 then
39 elseif link.Cost <
100 then
44 <td><a href=
"http://<%=link["Remote IP
"]%>/cgi-bin-status.html"><%=link[
"Remote IP"]%
></a></td>
45 <td><a href=
"http://<%=link["Hostname
"]%>/cgi-bin-status.html"><%=link[
"Hostname"]%
></a></td>
46 <td><%=link[
"Local IP"]%
></td>
47 <td><%=link[
"Local Device"]%
></td>
49 <td><%=link.NLQ%
></td>
50 <td style=
"background-color:<%=color%>"><%=string.format(
"%.3f", link.Cost)%
></td>
57 <li><strong>LQ:
</strong><%:Success rate of packages received from the neighbour%
></li>
58 <li><strong>NLQ:
</strong><%:Success rate of packages sent to the neighbour%
></li>
59 <li><strong>ETX:
</strong><%:Expected retransmission count%
></li>