Index: modules/snmp_pf/BEGEMOT-PF-MIB.txt =================================================================== --- modules/snmp_pf/BEGEMOT-PF-MIB.txt (revision 283570) +++ modules/snmp_pf/BEGEMOT-PF-MIB.txt (working copy) @@ -164,6 +164,74 @@ "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." + +pfCounterStateLimit OBJECT-TYPE + SYNTAX Counter64 + MAX-ACCESS read-only + STATUS current + DESCRIPTION + "Number of times configured state limit was reached." + +pfCounterSrcLimit OBJECT-TYPE + SYNTAX Counter64 + MAX-ACCESS read-only + STATUS current + DESCRIPTION + "Number of source node/connection limit was reached." + +pfCounterSynProxy OBJECT-TYPE + SYNTAX Counter64 + MAX-ACCESS read-only + STATUS current + DESCRIPTION + "Number of packets dropped by synproxy." + -- -------------------------------------------------------------------------- -- Index: modules/snmp_pf/pf_snmp.c =================================================================== --- modules/snmp_pf/pf_snmp.c (revision 283570) +++ 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: modules/snmp_pf/pf_tree.def =================================================================== --- modules/snmp_pf/pf_tree.def (revision 283570) +++ 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)