} else if (info.v6.config.olsrdVersion != undefined) {
version = info.v6.config.olsrdVersion
date = info.v6.config.olsrdBuildDate
-
} else {
version = 'unknown'
date = 'unknown'
if (e = document.getElementById('nr_neigh'))
var neigh = 0;
- if (info.v4.links.length != undefined) {
+ if (info.v4.links != undefined) {
neigh = neigh + info.v4.links.length
}
- if (info.v6.links.length != undefined) {
+ if (info.v6.links != undefined) {
neigh = neigh + info.v6.links.length
}
e.innerHTML = neigh;
if (e = document.getElementById('nr_hna'))
var hna = 0;
- if (info.v4.hna.length != undefined) {
+ if (info.v4.hna != undefined) {
hna = hna + info.v4.hna.length
}
- if (info.v6.hna.length != undefined) {
+ if (info.v6.hna != undefined) {
hna = hna + info.v6.hna.length
}
e.innerHTML = hna;
if (e = document.getElementById('nr_ifaces'))
var nrint = 0
- if (info.v4.interfaces.length != undefined) {
+ if (info.v4.interfaces != undefined) {
nrint = nrint + info.v4.interfaces.length
}
- if (info.v6.interfaces.length != undefined) {
+ if (info.v6.interfaces != undefined) {
nrint = nrint + info.v6.interfaces.length
}
e.innerHTML = nrint
return false;
}
- if (info.v4.topology.length != undefined) {
+ if (info.v4.topology != undefined) {
topo = topo + info.v4.topology.length;
for (var i = 0; i < info.v4.topology.length; i++) {
var destip = info.v4.topology[i].destinationIP
}
}
- if (info.v6.topology.length != undefined) {
+ if (info.v6.topology != undefined) {
topo = topo + info.v6.topology.length
for (var i = 0; i < info.v6.topology.length; i++) {
var destip = info.v6.topology[i].destinationIP