summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Henderson <sthen@cvs.openbsd.org>2021-03-23 19:37:52 +0000
committerStuart Henderson <sthen@cvs.openbsd.org>2021-03-23 19:37:52 +0000
commit320df0fa0de2de24299aac312dadd0c259bdc76d (patch)
treee68db16e948aff8ee7d74921d82fc8e3d7c78c78
parentb1d9d6402f1a8da7b4ca9e8b3449c8508cc8ff85 (diff)
change pfIfDescr and pfLogIfName from plain OCTET STRING (which has no
textual-convention so is sometimes printed as hex dump) to DisplayString (ascii). likewise change pfLabelName and pfTblName to SnmpAdminString (UTF-8 textual-convention). feedback/tweaks (notably pointing out UTF-8)/ok martijn@
-rw-r--r--share/snmp/OPENBSD-PF-MIB.txt27
1 files changed, 16 insertions, 11 deletions
diff --git a/share/snmp/OPENBSD-PF-MIB.txt b/share/snmp/OPENBSD-PF-MIB.txt
index 8c7795ddf1c..061c7077823 100644
--- a/share/snmp/OPENBSD-PF-MIB.txt
+++ b/share/snmp/OPENBSD-PF-MIB.txt
@@ -1,4 +1,4 @@
--- $OpenBSD: OPENBSD-PF-MIB.txt,v 1.6 2018/06/19 10:08:45 mpi Exp $
+-- $OpenBSD: OPENBSD-PF-MIB.txt,v 1.7 2021/03/23 19:37:51 sthen Exp $
--
-- Copyright (c) 2004-2013 Joel Knight <knight.joel@gmail.com>
--
@@ -23,9 +23,12 @@ IMPORTS
TimeTicks, enterprises
FROM SNMPv2-SMI
- TruthValue
+ TruthValue, DisplayString
FROM SNMPv2-TC
-
+
+ SnmpAdminString
+ FROM SNMP-FRAMEWORK-MIB
+
openBSD
FROM OPENBSD-BASE-MIB
@@ -33,7 +36,7 @@ IMPORTS
FROM SNMPv2-CONF;
pfMIBObjects MODULE-IDENTITY
- LAST-UPDATED "201506091728Z"
+ LAST-UPDATED "202103231933Z"
ORGANIZATION "OpenBSD"
CONTACT-INFO "
Author: Joel Knight
@@ -43,6 +46,8 @@ pfMIBObjects MODULE-IDENTITY
DESCRIPTION "The MIB module for gathering information from
OpenBSD's packet filter.
"
+ REVISION "202103231933Z"
+ DESCRIPTION "Use DisplayString/SnmpAdminString not OCTET STRING where appropriate"
REVISION "201506091728Z"
DESCRIPTION "Add separate counter for failed 'route-to' applications"
REVISION "201308310446Z"
@@ -300,7 +305,7 @@ pfStateRemovals OBJECT-TYPE
-- pfLogInterface
pfLogIfName OBJECT-TYPE
- SYNTAX OCTET STRING
+ SYNTAX DisplayString
MAX-ACCESS read-only
STATUS current
DESCRIPTION
@@ -683,7 +688,7 @@ pfIfEntry OBJECT-TYPE
PfIfEntry ::=
SEQUENCE {
pfIfIndex Integer32,
- pfIfDescr OCTET STRING,
+ pfIfDescr DisplayString,
pfIfType INTEGER,
pfIfRefs Unsigned32,
pfIfRules Unsigned32,
@@ -719,7 +724,7 @@ pfIfIndex OBJECT-TYPE
::= { pfIfEntry 1 }
pfIfDescr OBJECT-TYPE
- SYNTAX OCTET STRING
+ SYNTAX DisplayString
MAX-ACCESS read-only
STATUS current
DESCRIPTION
@@ -913,7 +918,7 @@ pfTblEntry OBJECT-TYPE
TblEntry ::=
SEQUENCE {
pfTblIndex Integer32,
- pfTblName OCTET STRING,
+ pfTblName SnmpAdminString,
pfTblAddresses Integer32,
pfTblAnchorRefs Integer32,
pfTblRuleRefs Integer32,
@@ -947,7 +952,7 @@ pfTblIndex OBJECT-TYPE
::= { pfTblEntry 1 }
pfTblName OBJECT-TYPE
- SYNTAX OCTET STRING
+ SYNTAX SnmpAdminString
MAX-ACCESS read-only
STATUS current
DESCRIPTION
@@ -1363,7 +1368,7 @@ pfLabelEntry OBJECT-TYPE
PfLabelEntry ::=
SEQUENCE {
pfLabelIndex Integer32,
- pfLabelName OCTET STRING,
+ pfLabelName SnmpAdminString,
pfLabelEvals Counter64,
pfLabelPkts Counter64,
pfLabelBytes Counter64,
@@ -1383,7 +1388,7 @@ pfLabelIndex OBJECT-TYPE
::= { pfLabelEntry 1 }
pfLabelName OBJECT-TYPE
- SYNTAX OCTET STRING
+ SYNTAX SnmpAdminString
MAX-ACCESS read-only
STATUS current
DESCRIPTION