Correct address inversion in match_arp_net()

Signed-off-by: Tom Eastep <teastep@mint14.(none)>
This commit is contained in:
Tom Eastep 2013-01-05 08:20:51 -08:00
parent 4fc0dba26d
commit 7f6430a383

View File

@ -56,12 +56,9 @@ sub match_arp_net( $$$ ) {
my $return = '';
if ( supplied $net ) {
my ( $addr , $mask ) = split( $net , '/', 2 );
my $invert = ( $addr =~ s/^!// ) ? '! ' : '';
my $invert = ( $net =~ s/^!// ) ? '! ' : '';
validate_net $net, 0;
$return = $source ? "-s $net " : "-d $net ";
$return = $source ? "-s ${invert}$net " : "-d ${invert}$net ";
}
if ( supplied $mac ) {