Skip to content

Commit

Permalink
snmp: Updated return data format
Browse files Browse the repository at this point in the history
Rate limit · GitHub

Access has been restricted

You have triggered a rate limit.

Please wait a few minutes before you try again;
in some cases this may take up to an hour.

aleksinx committed Jul 2, 2021
1 parent 9fdb332 commit c661a76
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions snmp/rdt-agentx.pl
Original file line number Diff line number Diff line change
@@ -474,7 +474,7 @@ sub handle_core_prop {

if (MODE_GET == $mode) {
if (exists $data_core_prop{$oid}) {
$request->setValue(ASN_UNSIGNED, $data_core_prop{$oid});
$request->setValue(ASN_UNSIGNED, "$data_core_prop{$oid}");
}

return;
@@ -485,7 +485,7 @@ sub handle_core_prop {
$_ = NetSNMP::OID->new($_);
if ($oid < $_) {
$request->setOID($_);
$request->setValue(ASN_UNSIGNED, $data_core_prop{$_});
$request->setValue(ASN_UNSIGNED, "$data_core_prop{$_}");
last;
}
}
@@ -638,7 +638,7 @@ sub handle_mon_ctrl {

if (MODE_GET == $mode) {
if (exists $data_mon_ctrl{$oid}) {
$request->setValue(ASN_UNSIGNED, $data_mon_ctrl{$oid});
$request->setValue(ASN_UNSIGNED, "$data_mon_ctrl{$oid}");
}

return;
@@ -649,7 +649,7 @@ sub handle_mon_ctrl {
$_ = NetSNMP::OID->new($_);
if ($oid < $_) {
$request->setOID($_);
$request->setValue(ASN_UNSIGNED, $data_mon_ctrl{$_});
$request->setValue(ASN_UNSIGNED, "$data_mon_ctrl{$_}");
last;
}
}

0 comments on commit c661a76

Please sign in to comment.