You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
local trap_generic_reg = function (oid)
assert(type(oid) == 'string')
trap_generic_oid = {}
for i in string.gmatch(oid, "%d+") do
table.insert(trap_generic_oid, tonumber(i))
end
-- Register snmpTrapOID as a default SNMP trap varbind.
trap.object_register(".1.3.6.1.6.3.1.1.4.1.0", trapGroup[snmpTrapOID], function() return true end)
end
Original src is as below for i in string.gmatch(oid, "%d") do
With this code, some OID can not be parsed correctly, for example "1.3.6.1.4.1.29408.11.6.11.1.1.4.0"
Fixed src is as below for i in string.gmatch(oid, "%d+") do
There is same defect in trap_specific_reg()
The text was updated successfully, but these errors were encountered:
In snmptrap.lua
Original src is as below
for i in string.gmatch(oid, "%d") do
With this code, some OID can not be parsed correctly, for example "1.3.6.1.4.1.29408.11.6.11.1.1.4.0"
Fixed src is as below
for i in string.gmatch(oid, "%d+") do
There is same defect in trap_specific_reg()
The text was updated successfully, but these errors were encountered: