cederberg / mibble

Mibble is an open-source SNMP MIB parser library for Java.
https://www.mibble.org/
Other
111 stars 69 forks source link

TRAP-TYPE definitions cause false positives in Mib#getSymbolByOid(String oid) #38

Open derekm opened 3 years ago

derekm commented 3 years ago

If a loaded MIB has TRAP-TYPE definitions, they act as a catch-all when using getSymbolByOid(String oid).

This prohibits loading several MIBs and looping over them in a getMibForOid(String oid) routine without editing the MIB and removing the TRAP-TYPE definitions or without further inspecting and rejecting the candidate symbol.