3 description
: L
.tr('The following rules are currently active on this system.'),
6 L
.network
.getARPTable().then(function(arp
) {
7 var arpTable
= new L
.ui
.table({
10 caption
: L
.tr('IPv4-Address'),
13 caption
: L
.tr('MAC-Address'),
16 caption
: L
.tr('Interface'),
22 arpTable
.insertInto('#arp_table');
24 L
.network
.getRoutes().then(function(routes
) {
25 var routeTable
= new L
.ui
.table({
26 caption
: L
.tr('Active IPv4-Routes'),
28 caption
: L
.tr('Target'),
31 caption
: L
.tr('Gateway'),
34 caption
: L
.tr('Metric'),
37 caption
: L
.tr('Interface'),
42 routeTable
.rows(routes
);
43 routeTable
.insertInto('#route_table');
45 L
.network
.getIPv6Routes().then(function(routes
) {
46 var route6Table
= new L
.ui
.table({
47 caption
: L
.tr('Active IPv6-Routes'),
49 caption
: L
.tr('Target'),
52 caption
: L
.tr('Gateway'),
55 caption
: L
.tr('Source'),
58 caption
: L
.tr('Metric'),
61 caption
: L
.tr('Interface'),
66 for (var i
= 0; i
< routes
.length
; i
++)
68 var prefix
= routes
[i
].target
.substr(0, 5).toLowerCase();
69 if (prefix
== 'fe80:' || prefix
== 'fe90:' || prefix
== 'fea0:' || prefix
== 'feb0:' || prefix
== 'ff00:')
72 route6Table
.row(routes
[i
]);
75 route6Table
.insertInto('#route6_table');