- $Lang::tr{'legend'} : + | + $Lang::tr{'legend'} : | -- $Lang::tr{'lan'} + | + $Lang::tr{'lan'} | -- $Lang::tr{'internet'} + | + $Lang::tr{'internet'} | -- $Lang::tr{'dmz'} + | + $Lang::tr{'dmz'} | -- $Lang::tr{'wireless'} + | + $Lang::tr{'wireless'} | -- IPFire + | + IPFire | -- $Lang::tr{'vpn'} + | + $Lang::tr{'vpn'} | -- $Lang::tr{'OpenVPN'} + | + $Lang::tr{'OpenVPN'} | -- Multicast + | + Multicast |
+ | + + + | ++ + + + + + | ++ + + + + + | ++ + + + + + | ++ + + | ++ + + | +||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
$Lang::tr{'protocol'} | -+ | $Lang::tr{'source ip and port'} | -- | + | $Lang::tr{'dest ip and port'} | -- | + |
$Lang::tr{'download'} /
$Lang::tr{'upload'} |
- + |
$Lang::tr{'connection'} $Lang::tr{'status'} |
- + |
$Lang::tr{'expires'} ($Lang::tr{'seconds'}) |
$l4proto | -+ | $l4proto | +- $sip + $sip + $sip_extra | -- - $sport$sserv + | + + $sport + $sport_extra | -+ | - $dip + $dip + $dip_extra | -- - $dport$dserv + | + + $dport + $dport_extra | -+ | $bytes_in / $bytes_out | -$state | -$ttl | +$state | +$ttl | END } @@ -464,15 +665,17 @@ sub ipcolour($) { my ($ip) = $_[0]; my $found = 0; - foreach my $line (@network) { - if ($network[$id] eq '') { - $id++; - } else { - if (!$found && ipv4_in_network($network[$id], $masklen[$id], $ip) ) { - $found = 1; - $colour = $colour[$id]; + if ($ip) { + foreach my $line (@network) { + if ($network[$id] eq '') { + $id++; + } else { + if (!$found && ipv4_in_network($network[$id], $masklen[$id], $ip) ) { + $found = 1; + $colour = $colour[$id]; + } + $id++; } - $id++; } }