snmp_pf: fix pfInterfacesIfRefsState

pfInterfacesIfRefsState was described as 'Null', which upset bsnmpwalk's attempt
to resolve OIDs to symbolic names:

> bsnmpwalk: Error adding leaf pfInterfacesIfRefsState to list

This was done back in d6d3f01e0a, because we don't return this value any
more. Return it to 'Unsigned32', which fixes things, even if we still don't
actually return this value.

While here update the ORGANIZATION to reflect current ownership.

Reviewed by:	philip
MFC after:	2 weeks
Event:		Tokyo Hackathon 202503
Differential Revision:	https://reviews.freebsd.org/D49413
This commit is contained in:
Kristof Provost
2025-03-19 07:08:55 +01:00
parent 9e8d2962aa
commit 712309a645
2 changed files with 7 additions and 9 deletions
@@ -21,19 +21,17 @@ IMPORTS
FROM BEGEMOT-MIB;
begemotPf MODULE-IDENTITY
LAST-UPDATED "201003180000Z"
ORGANIZATION "NixSys BVBA"
LAST-UPDATED "202503190000Z"
ORGANIZATION "Alternative Enterprises (HK) Limited"
CONTACT-INFO
" Philip Paeps
Postal: NixSys BVBA
Louizastraat 14
BE-2800 Mechelen
Belgium
E-Mail: philip@FreeBSD.org"
DESCRIPTION
"The Begemot MIB for the pf packet filter."
REVISION "202503190000Z"
DESCRIPTION
"Reverted pfInterfacesIfRefsState to Unsigned32"
REVISION "201003180000Z"
DESCRIPTION
"Modified pfTablesAddrEntry to support IPv6
@@ -583,7 +581,7 @@ PfInterfacesIfEntry ::= SEQUENCE {
pfInterfacesIfDescr OCTET STRING,
pfInterfacesIfType INTEGER,
pfInterfacesIfTZero TimeTicks,
pfInterfacesIfRefsState Null,
pfInterfacesIfRefsState Unsigned32,
pfInterfacesIfRefsRule Unsigned32,
pfInterfacesIf4BytesInPass Counter64,
pfInterfacesIf4BytesInBlock Counter64,
+1 -1
View File
@@ -107,7 +107,7 @@
(2 pfInterfacesIfDescr OCTETSTRING GET)
(3 pfInterfacesIfType ENUM ( 0 group 1 instance 2 detached ) GET)
(4 pfInterfacesIfTZero TIMETICKS GET)
(5 pfInterfacesIfRefsState NULL GET)
(5 pfInterfacesIfRefsState UNSIGNED32 GET)
(6 pfInterfacesIfRefsRule UNSIGNED32 GET)
(7 pfInterfacesIf4BytesInPass COUNTER64 GET)
(8 pfInterfacesIf4BytesInBlock COUNTER64 GET)