Implement an initial SMIv2 parser based around RFC257[89]. RFC2580 isn't
authormartijn <martijn@openbsd.org>
Sat, 27 Jan 2024 09:53:59 +0000 (09:53 +0000)
committermartijn <martijn@openbsd.org>
Sat, 27 Jan 2024 09:53:59 +0000 (09:53 +0000)
commit320015f8fce66eba06563affcf536ab2c58be3a5
treeb3c0eefa6a1c6c1d0e86ded42f1e22f9807afa73
parentf05048700f314854965789bce5265edaac0a0bf0
Implement an initial SMIv2 parser based around RFC257[89]. RFC2580 isn't
supported yet. SMIv1 is not supported. Parsing is done in a strict
manner, but except for the (deprecated) IPV6-TC MIB everything from
IETF/IANA that I found parses.

For now this code will be used OID<->name translations, but other
functionality could be added in the future.

This commit just includes the parser, usage and including the MIB files
will be done in separate commits.

Go ahead from tb@
usr.sbin/snmpd/Makefile
usr.sbin/snmpd/mib.h
usr.sbin/snmpd/mib.y [new file with mode: 0644]