| line |
true |
false |
branch |
|
72
|
0 |
0 |
if (not defined $opts{'config_file'}) { } |
|
|
0 |
0 |
elsif (not -f $opts{'config_file'}) { } |
|
|
0 |
0 |
elsif (not -r $opts{'config_file'}) { } |
|
81
|
0 |
0 |
if (defined $opts{'ip'}) { } |
|
82
|
0 |
0 |
if (ref $opts{'ip'} ne '') { } |
|
|
0 |
0 |
elsif (not $opts{'ip'} =~ /^$Suricata::Ping::IPv4_re$/ || $opts{'ip'} =~ /^$Suricata::Ping::IPv6_re$/) { } |
|
94
|
0 |
0 |
if (defined $opts{'count'}) { } |
|
95
|
0 |
0 |
if (ref $opts{'count'} ne '') { } |
|
|
0 |
0 |
elsif (not $opts{'count'} =~ /^[0-9]+$/) { } |
|
|
0 |
0 |
elsif ($opts{'count'} < 1) { } |
|
107
|
0 |
0 |
if (defined $opts{'pattern'}) { } |
|
108
|
0 |
0 |
if (ref $opts{'pattern'} ne "") |
|
116
|
0 |
0 |
if (defined $opts{'section'}) { } |
|
117
|
0 |
0 |
if (ref $opts{'section'} ne "") |
|
121
|
0 |
0 |
if ($^O eq 'linux') { } |
|
131
|
0 |
0 |
if ($@) |
|
138
|
0 |
0 |
if ($@) |
|
143
|
0 |
0 |
if (defined $parsed_config->{'include'}) |
|
144
|
0 |
0 |
if (ref $parsed_config->{'include'} ne "ARRAY") |
|
154
|
0 |
0 |
if (ref $parsed_config->{'include'}[$include_int] ne "") |
|
164
|
0 |
0 |
if ($@) |
|
173
|
0 |
0 |
if ($@) |
|
187
|
0 |
0 |
unless (defined $$parsed_config{$opts{'section'}}) |
|
190
|
0 |
0 |
if (ref $$parsed_config{$opts{'section'}} ne "ARRAY") |
|
193
|
0 |
0 |
unless (defined $$parsed_config{$opts{'section'}}[0]) |
|
200
|
0 |
0 |
if (ref $$parsed_config{$opts{'section'}}[$interfaces_int] eq "HASH" and defined $$parsed_config{$opts{'section'}}[$interfaces_int]{'interface'} and ref $$parsed_config{$opts{'section'}}[$interfaces_int]{'interface'} eq "") |
|
210
|
0 |
0 |
unless (defined $interfaces[0]) |