215 |
$ip = $new_ip; |
$ip = $new_ip; |
216 |
} |
} |
217 |
|
|
218 |
my $ip_short = (split(/\./, $ip, 4))[3]; |
if ( $ip ne $server::ip ) { |
|
|
|
|
# if ( $ip ne $server::ip ) -- not flexible enough for tunnel endpoints |
|
|
if ( $ip_short >= $server::ip_from && $ip_short <= $server::ip_to ) { |
|
219 |
my $hostname = client::conf( $ip, 'hostname' => $param->{hostname} ); |
my $hostname = client::conf( $ip, 'hostname' => $param->{hostname} ); |
220 |
|
|
221 |
my @table = ( |
my @table = ( |
285 |
$ip; |
$ip; |
286 |
} glob("$server::conf/ip/*") |
} glob("$server::conf/ip/*") |
287 |
) |
) |
|
, qq|<h2>ARP</h2>| |
|
|
, html::table( -3, 'ip', 'mac', 'dev', |
|
|
map { |
|
|
my $c = $arp->{$_}; |
|
|
( $c->[0], format::mac( $_ => 'html' ), $c->[1] ) |
|
|
} sort keys %$arp |
|
|
) |
|
288 |
; |
; |
289 |
} |
} |
290 |
} elsif ( $path =~ m{^/brctl} ) { |
} elsif ( $path =~ m{^/brctl} ) { |