View | Details | Raw Unified | Return to bug 200919 | Differences between
and this patch

Collapse All | Expand All

(-)modules/snmp_pf/BEGEMOT-PF-MIB.txt (+68 lines)
Lines 164-169 Link Here
164
	"Number of packets dropped due to memory limitations."
164
	"Number of packets dropped due to memory limitations."
165
    ::= { pfCounter 6 }
165
    ::= { pfCounter 6 }
166
166
167
pfCounterBadTimestamp OBJECT-TYPE
168
    SYNTAX	Counter64
169
    MAX-ACCESS	read-only
170
    STATUS	current
171
    DESCRIPTION
172
	"Number of packets with bad timestamp."
173
    ::= { pfCounter 7 }
174
175
pfCounterCongestion OBJECT-TYPE
176
    SYNTAX	Counter64
177
    MAX-ACCESS	read-only
178
    STATUS	current
179
    DESCRIPTION
180
	"Number of packets dropped due to a full IP input queue."
181
    ::= { pfCounter 8 }
182
183
pfCounterIpOption OBJECT-TYPE
184
    SYNTAX	Counter64
185
    MAX-ACCESS	read-only
186
    STATUS	current
187
    DESCRIPTION
188
	"Number of packets with bad IP/IPv6 options."
189
    ::= { pfCounter 9 }
190
191
pfCounterProtoCksum OBJECT-TYPE
192
    SYNTAX	Counter64
193
    MAX-ACCESS	read-only
194
    STATUS	current
195
    DESCRIPTION
196
	"Number of packets with invalid protocol checksum."
197
    ::= { pfCounter 10 }
198
199
pfCounterStateMismatch OBJECT-TYPE
200
    SYNTAX	Counter64
201
    MAX-ACCESS	read-only
202
    STATUS	current
203
    DESCRIPTION
204
	"Number of packets with sequence numbers did not match state entry."
205
    ::= { pfCounter 11 }
206
207
pfCounterStateInsert OBJECT-TYPE
208
    SYNTAX	Counter64
209
    MAX-ACCESS	read-only
210
    STATUS	current
211
    DESCRIPTION
212
	"Number of state insertion failures."
213
214
pfCounterStateLimit OBJECT-TYPE
215
    SYNTAX	Counter64
216
    MAX-ACCESS	read-only
217
    STATUS	current
218
    DESCRIPTION
219
	"Number of times configured state limit was reached."
220
221
pfCounterSrcLimit OBJECT-TYPE
222
    SYNTAX	Counter64
223
    MAX-ACCESS	read-only
224
    STATUS	current
225
    DESCRIPTION
226
	"Number of source node/connection limit was reached."
227
228
pfCounterSynProxy OBJECT-TYPE
229
    SYNTAX	Counter64
230
    MAX-ACCESS	read-only
231
    STATUS	current
232
    DESCRIPTION
233
	"Number of packets dropped by synproxy."
234
167
-- --------------------------------------------------------------------------
235
-- --------------------------------------------------------------------------
168
236
169
--
237
--
(-)modules/snmp_pf/pf_snmp.c (+27 lines)
Lines 218-223 Link Here
218
			case LEAF_pfCounterMemDrop:
218
			case LEAF_pfCounterMemDrop:
219
				val->v.counter64 = pfs.counters[PFRES_MEMORY];
219
				val->v.counter64 = pfs.counters[PFRES_MEMORY];
220
				break;
220
				break;
221
			case LEAF_pfCounterBadTimestamp:
222
				val->v.counter64 = pfs.counters[PFRES_TS];
223
				break;
224
			case LEAF_pfCounterCongestion:
225
				val->v.counter64 = pfs.counters[PFRES_CONGEST];
226
				break;
227
			case LEAF_pfCounterIpOption:
228
				val->v.counter64 = pfs.counters[PFRES_IPOPTIONS];
229
				break;
230
			case LEAF_pfCounterProtoCksum:
231
				val->v.counter64 = pfs.counters[PFRES_PROTCKSUM];
232
				break;
233
			case LEAF_pfCounterStateMismatch:
234
				val->v.counter64 = pfs.counters[PFRES_BADSTATE];
235
				break;
236
			case LEAF_pfCounterStateInsert:
237
				val->v.counter64 = pfs.counters[PFRES_STATEINS];
238
				break;
239
			case LEAF_pfCounterStateLimit:
240
				val->v.counter64 = pfs.counters[PFRES_MAXSTATES];
241
				break;
242
			case LEAF_pfCounterSrcLimit:
243
				val->v.counter64 = pfs.counters[PFRES_SRCLIMIT];
244
				break;
245
			case LEAF_pfCounterSynProxy:
246
				val->v.counter64 = pfs.counters[PFRES_SYNPROXY];
247
				break;
221
248
222
			default:
249
			default:
223
				return (SNMP_ERR_NOSUCHNAME);
250
				return (SNMP_ERR_NOSUCHNAME);
(-)modules/snmp_pf/pf_tree.def (+9 lines)
Lines 46-51 Link Here
46
                (4 pfCounterShort COUNTER64 pf_counter GET)
46
                (4 pfCounterShort COUNTER64 pf_counter GET)
47
                (5 pfCounterNormalize COUNTER64 pf_counter GET)
47
                (5 pfCounterNormalize COUNTER64 pf_counter GET)
48
                (6 pfCounterMemDrop COUNTER64 pf_counter GET)
48
                (6 pfCounterMemDrop COUNTER64 pf_counter GET)
49
                (7 pfCounterBadTimestamp COUNTER64 pf_counter GET)
50
                (8 pfCounterCongestion COUNTER64 pf_counter GET)
51
                (9 pfCounterIpOption COUNTER64 pf_counter GET)
52
                (10 pfCounterProtoCksum COUNTER64 pf_counter GET)
53
                (11 pfCounterStateMismatch COUNTER64 pf_counter GET)
54
                (12 pfCounterStateInsert COUNTER64 pf_counter GET)
55
                (13 pfCounterStateLimit COUNTER64 pf_counter GET)
56
                (14 pfCounterSrcLimit COUNTER64 pf_counter GET)
57
                (15 pfCounterSynProxy COUNTER64 pf_counter GET)
49
              )
58
              )
50
              (3 pfStateTable
59
              (3 pfStateTable
51
                (1 pfStateTableCount UNSIGNED32 pf_statetable GET)
60
                (1 pfStateTableCount UNSIGNED32 pf_statetable GET)

Return to bug 200919