summaryrefslogtreecommitdiff
path: root/usr.sbin/snmpd
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/snmpd')
-rw-r--r--usr.sbin/snmpd/mib.c6
-rw-r--r--usr.sbin/snmpd/mib.h4
2 files changed, 7 insertions, 3 deletions
diff --git a/usr.sbin/snmpd/mib.c b/usr.sbin/snmpd/mib.c
index 8e4d98fba7e..dcf3eb3bb92 100644
--- a/usr.sbin/snmpd/mib.c
+++ b/usr.sbin/snmpd/mib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mib.c,v 1.75 2015/01/21 21:50:33 deraadt Exp $ */
+/* $OpenBSD: mib.c,v 1.76 2015/06/10 10:03:59 mikeb Exp $ */
/*
* Copyright (c) 2012 Joel Knight <joel@openbsd.org>
@@ -1451,6 +1451,7 @@ static struct oid openbsd_mib[] = {
{ MIB(pfCntSrcLimit), OID_RD, mib_pfcounters },
{ MIB(pfCntSynproxy), OID_RD, mib_pfcounters },
{ MIB(pfCntTranslate), OID_RD, mib_pfcounters },
+ { MIB(pfCntNoRoute), OID_RD, mib_pfcounters },
{ MIB(pfStateCount), OID_RD, mib_pfscounters },
{ MIB(pfStateSearches), OID_RD, mib_pfscounters },
{ MIB(pfStateInserts), OID_RD, mib_pfscounters },
@@ -1707,7 +1708,8 @@ mib_pfcounters(struct oid *oid, struct ber_oid *o, struct ber_element **elm)
{ 13, &s.counters[PFRES_MAXSTATES] },
{ 14, &s.counters[PFRES_SRCLIMIT] },
{ 15, &s.counters[PFRES_SYNPROXY] },
- { 16, &s.counters[PFRES_TRANSLATE] }
+ { 16, &s.counters[PFRES_TRANSLATE] },
+ { 17, &s.counters[PFRES_NOROUTE] }
};
if (pf_get_stats(&s))
diff --git a/usr.sbin/snmpd/mib.h b/usr.sbin/snmpd/mib.h
index 4fff5ecb255..03f0171de86 100644
--- a/usr.sbin/snmpd/mib.h
+++ b/usr.sbin/snmpd/mib.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: mib.h,v 1.35 2014/11/19 10:24:40 blambert Exp $ */
+/* $OpenBSD: mib.h,v 1.36 2015/06/10 10:03:59 mikeb Exp $ */
/*
* Copyright (c) 2007, 2008 Reyk Floeter <reyk@openbsd.org>
@@ -490,6 +490,7 @@
#define MIB_pfCntSrcLimit MIB_pfCounters, 14
#define MIB_pfCntSynproxy MIB_pfCounters, 15
#define MIB_pfCntTranslate MIB_pfCounters, 16
+#define MIB_pfCntNoRoute MIB_pfCounters, 17
#define MIB_pfStateTable MIB_pfMIBObjects, 3
#define MIB_pfStateCount MIB_pfStateTable, 1
#define MIB_pfStateSearches MIB_pfStateTable, 2
@@ -1057,6 +1058,7 @@
{ MIBDECL(pfCntSrcLimit) }, \
{ MIBDECL(pfCntSynproxy) }, \
{ MIBDECL(pfCntTranslate) }, \
+ { MIBDECL(pfCntNoRoute) }, \
{ MIBDECL(pfStateTable) }, \
{ MIBDECL(pfStateCount) }, \
{ MIBDECL(pfStateSearches) }, \