line |
true |
false |
branch |
44
|
0 |
2 |
if (eval 'require Math::Random::MT::Auto') |
63
|
0 |
1 |
if (@_ != 2 or not ref $pdu) |
68
|
0 |
1 |
unless (defined $pdu->security) |
82
|
0 |
1 |
unless defined $msg |
84
|
0 |
1 |
if ($pdu->version == SNMP_VERSION_3()) |
88
|
0 |
0 |
unless (defined $pdu->prepare_pdu_scope) |
102
|
0 |
0 |
if ($pdu->pdu_type != GET_RESPONSE() and $pdu->pdu_type != REPORT()) |
108
|
0 |
0 |
unless (defined $this->_prepare_global_data($pdu, $msg)) |
115
|
0 |
1 |
unless (defined $pdu->security->generate_request_msg($pdu, $msg)) |
122
|
1 |
0 |
if ($pdu->expect_response) |
137
|
0 |
1 |
if (@_ != 2 or not ref $msg) |
142
|
0 |
1 |
unless defined $msg->process(SEQUENCE()) |
145
|
0 |
1 |
unless (defined $msg->version($msg->process(INTEGER()))) |
154
|
0 |
1 |
if ($msg->version == SNMP_VERSION_3()) { } |
157
|
0 |
0 |
unless (defined $this->_process_global_data($msg)) |
166
|
0 |
1 |
unless (defined $msg->security_name($msg->process(OCTET_STRING()))) |
171
|
0 |
1 |
unless (defined($msg = 'Net::SNMP::PDU'->new($msg))) |
176
|
0 |
1 |
unless (defined $msg->process_pdu_sequence) |
180
|
1 |
0 |
if ($msg->pdu_type != GET_RESPONSE()) |
192
|
0 |
0 |
unless (defined $request) |
206
|
0 |
0 |
if ($msg->msg_security_model != $request->msg_security_model) |
217
|
0 |
0 |
unless (defined $request->security->process_incoming_msg($msg)) |
222
|
0 |
0 |
if ($msg->version == SNMP_VERSION_3()) |
225
|
0 |
0 |
if ($msg->msg_max_size < $request->max_msg_size) |
227
|
0 |
0 |
unless (defined $request->max_msg_size($msg->msg_max_size)) |
234
|
0 |
0 |
unless (defined($msg = 'Net::SNMP::PDU'->new($msg))) |
240
|
0 |
0 |
unless (defined $msg->process_pdu_scope) |
246
|
0 |
0 |
unless (defined $msg->process_pdu_sequence) |
251
|
0 |
0 |
if ($msg->pdu_type != REPORT()) |
253
|
0 |
0 |
if ($msg->pdu_type != GET_RESPONSE()) |
262
|
0 |
0 |
if ($msg->context_engine_id ne $request->context_engine_id) |
272
|
0 |
0 |
if ($msg->context_name ne $request->context_name) |
281
|
0 |
0 |
if ($msg->request_id != $request->request_id) |
298
|
0 |
0 |
unless (defined $msg->process_var_bind_list) |
331
|
0 |
0 |
if @_ < 2 |
333
|
0 |
0 |
unless (exists $$this[_HANDLES()]{$handle}) |
347
|
0 |
0 |
$_[1] ? : |
|
0 |
1 |
@_ == 2 ? : |
369
|
0 |
0 |
unless (defined $msg->prepare(INTEGER(), $msg->msg_security_model($pdu->msg_security_model))) |
383
|
0 |
0 |
if ($security_level > SECURITY_LEVEL_NOAUTHNOPRIV()) |
385
|
0 |
0 |
if ($security_level > SECURITY_LEVEL_AUTHNOPRIV()) |
390
|
0 |
0 |
unless ($pdu->expect_response) |
394
|
0 |
0 |
unless (defined $msg->prepare(OCTET_STRING(), pack('C', $msg_flags))) |
402
|
0 |
0 |
unless (defined $msg->prepare(INTEGER(), $msg->msg_max_size($pdu->max_msg_size))) |
410
|
0 |
0 |
unless (defined $msg->prepare(INTEGER(), $msg->msg_id($pdu->msg_id))) |
415
|
0 |
0 |
unless (defined $msg->prepare(SEQUENCE())) |
427
|
0 |
0 |
unless defined $msg->process(SEQUENCE()) |
430
|
0 |
0 |
unless (defined $msg->msg_id($msg->process(INTEGER()))) |
435
|
0 |
0 |
unless (defined $msg->msg_max_size($msg->process(INTEGER()))) |
443
|
0 |
0 |
unless (defined $msg_flags) |
447
|
0 |
0 |
if (length $msg_flags != 1) |
459
|
0 |
0 |
if ($msg_flags & MSG_FLAGS_AUTH()) { } |
|
0 |
0 |
elsif ($msg_flags & MSG_FLAGS_PRIV()) { } |
461
|
0 |
0 |
if ($msg_flags & MSG_FLAGS_PRIV()) |
473
|
0 |
0 |
if ($msg_flags & ~MSG_FLAGS_MASK()) |
480
|
0 |
0 |
unless (defined $msg->msg_security_model($msg->process(INTEGER()))) |
491
|
1 |
0 |
unless (defined $$this[_ERROR()]) |
492
|
1 |
0 |
@_ > 1 ? : |
493
|
0 |
1 |
if ($this->debug) |
509
|
0 |
0 |
unless $DEBUG |
511
|
0 |
0 |
@_ > 1 ? : |