FreeBSD Bugzilla – Attachment 157831 Details for
Bug 200919
Support for more counters in snmp_pf for bsnmpd
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
fix MIB, index from /usr/src in diff
bsnmpd-counters.diff (text/plain), 4.62 KB, created by
Dmitry Alenichev
on 2015-06-17 14:26:01 UTC
(
hide
)
Description:
fix MIB, index from /usr/src in diff
Filename:
MIME Type:
Creator:
Dmitry Alenichev
Created:
2015-06-17 14:26:01 UTC
Size:
4.62 KB
patch
obsolete
>Index: usr.sbin/bsnmpd/modules/snmp_pf/BEGEMOT-PF-MIB.txt >=================================================================== >--- usr.sbin/bsnmpd/modules/snmp_pf/BEGEMOT-PF-MIB.txt (revision 284514) >+++ usr.sbin/bsnmpd/modules/snmp_pf/BEGEMOT-PF-MIB.txt (working copy) >@@ -164,6 +164,78 @@ > "Number of packets dropped due to memory limitations." > ::= { pfCounter 6 } > >+pfCounterBadTimestamp OBJECT-TYPE >+ SYNTAX Counter64 >+ MAX-ACCESS read-only >+ STATUS current >+ DESCRIPTION >+ "Number of packets with bad timestamp." >+ ::= { pfCounter 7 } >+ >+pfCounterCongestion OBJECT-TYPE >+ SYNTAX Counter64 >+ MAX-ACCESS read-only >+ STATUS current >+ DESCRIPTION >+ "Number of packets dropped due to a full IP input queue." >+ ::= { pfCounter 8 } >+ >+pfCounterIpOption OBJECT-TYPE >+ SYNTAX Counter64 >+ MAX-ACCESS read-only >+ STATUS current >+ DESCRIPTION >+ "Number of packets with bad IP/IPv6 options." >+ ::= { pfCounter 9 } >+ >+pfCounterProtoCksum OBJECT-TYPE >+ SYNTAX Counter64 >+ MAX-ACCESS read-only >+ STATUS current >+ DESCRIPTION >+ "Number of packets with invalid protocol checksum." >+ ::= { pfCounter 10 } >+ >+pfCounterStateMismatch OBJECT-TYPE >+ SYNTAX Counter64 >+ MAX-ACCESS read-only >+ STATUS current >+ DESCRIPTION >+ "Number of packets with sequence numbers did not match state entry." >+ ::= { pfCounter 11 } >+ >+pfCounterStateInsert OBJECT-TYPE >+ SYNTAX Counter64 >+ MAX-ACCESS read-only >+ STATUS current >+ DESCRIPTION >+ "Number of state insertion failures." >+ ::= { pfCounter 12 } >+ >+pfCounterStateLimit OBJECT-TYPE >+ SYNTAX Counter64 >+ MAX-ACCESS read-only >+ STATUS current >+ DESCRIPTION >+ "Number of times configured state limit was reached." >+ ::= { pfCounter 13 } >+ >+pfCounterSrcLimit OBJECT-TYPE >+ SYNTAX Counter64 >+ MAX-ACCESS read-only >+ STATUS current >+ DESCRIPTION >+ "Number of source node/connection limit was reached." >+ ::= { pfCounter 14 } >+ >+pfCounterSynProxy OBJECT-TYPE >+ SYNTAX Counter64 >+ MAX-ACCESS read-only >+ STATUS current >+ DESCRIPTION >+ "Number of packets dropped by synproxy." >+ ::= { pfCounter 15 } >+ > -- -------------------------------------------------------------------------- > > -- >Index: usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c >=================================================================== >--- usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c (revision 284514) >+++ usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c (working copy) >@@ -218,6 +218,33 @@ > case LEAF_pfCounterMemDrop: > val->v.counter64 = pfs.counters[PFRES_MEMORY]; > break; >+ case LEAF_pfCounterBadTimestamp: >+ val->v.counter64 = pfs.counters[PFRES_TS]; >+ break; >+ case LEAF_pfCounterCongestion: >+ val->v.counter64 = pfs.counters[PFRES_CONGEST]; >+ break; >+ case LEAF_pfCounterIpOption: >+ val->v.counter64 = pfs.counters[PFRES_IPOPTIONS]; >+ break; >+ case LEAF_pfCounterProtoCksum: >+ val->v.counter64 = pfs.counters[PFRES_PROTCKSUM]; >+ break; >+ case LEAF_pfCounterStateMismatch: >+ val->v.counter64 = pfs.counters[PFRES_BADSTATE]; >+ break; >+ case LEAF_pfCounterStateInsert: >+ val->v.counter64 = pfs.counters[PFRES_STATEINS]; >+ break; >+ case LEAF_pfCounterStateLimit: >+ val->v.counter64 = pfs.counters[PFRES_MAXSTATES]; >+ break; >+ case LEAF_pfCounterSrcLimit: >+ val->v.counter64 = pfs.counters[PFRES_SRCLIMIT]; >+ break; >+ case LEAF_pfCounterSynProxy: >+ val->v.counter64 = pfs.counters[PFRES_SYNPROXY]; >+ break; > > default: > return (SNMP_ERR_NOSUCHNAME); >Index: usr.sbin/bsnmpd/modules/snmp_pf/pf_tree.def >=================================================================== >--- usr.sbin/bsnmpd/modules/snmp_pf/pf_tree.def (revision 284514) >+++ usr.sbin/bsnmpd/modules/snmp_pf/pf_tree.def (working copy) >@@ -46,6 +46,15 @@ > (4 pfCounterShort COUNTER64 pf_counter GET) > (5 pfCounterNormalize COUNTER64 pf_counter GET) > (6 pfCounterMemDrop COUNTER64 pf_counter GET) >+ (7 pfCounterBadTimestamp COUNTER64 pf_counter GET) >+ (8 pfCounterCongestion COUNTER64 pf_counter GET) >+ (9 pfCounterIpOption COUNTER64 pf_counter GET) >+ (10 pfCounterProtoCksum COUNTER64 pf_counter GET) >+ (11 pfCounterStateMismatch COUNTER64 pf_counter GET) >+ (12 pfCounterStateInsert COUNTER64 pf_counter GET) >+ (13 pfCounterStateLimit COUNTER64 pf_counter GET) >+ (14 pfCounterSrcLimit COUNTER64 pf_counter GET) >+ (15 pfCounterSynProxy COUNTER64 pf_counter GET) > ) > (3 pfStateTable > (1 pfStateTableCount UNSIGNED32 pf_statetable GET)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 200919
:
157810
| 157831