line |
true |
false |
branch |
51
|
0 |
1 |
unless my $ip = shift() |
54
|
0 |
1 |
unless my $mac = shift() |
57
|
1 |
0 |
if ($self->cfg->{'MOCK_FIREWALL'}) |
72
|
0 |
0 |
if $error |
86
|
0 |
2 |
unless my $ip = shift() |
89
|
2 |
0 |
if ($self->cfg->{'MOCK_FIREWALL'}) |
99
|
0 |
0 |
if $error |
129
|
0 |
0 |
unless ($session) |
135
|
0 |
0 |
unless $$session{'STATE'} eq 'active' |
141
|
0 |
0 |
if ($error) |
160
|
0 |
6 |
if $error |
161
|
0 |
6 |
unless defined $sessions |
181
|
6 |
0 |
if ($self->cfg->{'MOCK_FIREWALL'}) |
191
|
0 |
0 |
if $error |
226
|
0 |
0 |
if $line =~ /^\s*$/ |
229
|
0 |
0 |
if $line =~ /:\s|:\Z/ |
235
|
0 |
0 |
unless (defined $ip and defined $mac) |
261
|
3 |
0 |
if ($self->cfg->{'MOCK_FIREWALL'}) |
274
|
0 |
0 |
if $error |
300
|
0 |
0 |
if $line =~ /^\s*$/ |
303
|
0 |
0 |
if $line =~ /:\s|:\Z/ |
309
|
0 |
0 |
unless (defined $ip and defined $timeout) |
341
|
0 |
0 |
if ($self->cfg->{'MOCK_FIREWALL'}) |
354
|
0 |
0 |
if $step eq 'init' |
367
|
0 |
0 |
if ($self->cfg->{'MOCK_FIREWALL'}) |
386
|
0 |
0 |
if ($self->cfg->{'MOCK_FIREWALL'}) |
432
|
0 |
0 |
if ($error) |
439
|
0 |
0 |
unless ($session) |
464
|
0 |
0 |
if ($$session{'STATE'} ne 'active') |
467
|
0 |
0 |
if ($this_run - $$session{'STOP_TIME'} > $self->cfg->{'KEEP_OLD_STATE_PERIOD'}) |
475
|
0 |
0 |
if $error |
488
|
0 |
0 |
if ($this_run - $session_start > $session_max and $$session{'STATE'} eq 'active' || $$session{'STATE'} eq 'idle') |
497
|
0 |
0 |
if $error |
508
|
0 |
0 |
if $error |
513
|
0 |
0 |
unless $$session{'STATE'} eq 'active' |
529
|
0 |
0 |
unless (defined $fw_session_entry or defined $self->fw_list_sessions->{$ip}) |
538
|
0 |
0 |
if $error |
555
|
0 |
0 |
if exists $$fw_activity{$ip} |
574
|
0 |
0 |
if $error |
607
|
0 |
0 |
if ($error) |
615
|
0 |
0 |
if $session |
621
|
0 |
0 |
unless defined $self->fw_list_sessions->{$ip} |
627
|
0 |
0 |
if $error |