This repository has been archived by the owner on Mar 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmib.h
761 lines (581 loc) · 26.9 KB
/
mib.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
/*
* ProFTPD - mod_snmp MIB
* Copyright (c) 2008-2013 TJ Saunders
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
*
* As a special exemption, TJ Saunders and other respective copyright holders
* give permission to link this program with OpenSSL, and distribute the
* resulting executable, without including the source code for OpenSSL in the
* source distribution.
*/
#include "mod_snmp.h"
#include "asn1.h"
#ifndef MOD_SNMP_MIB_H
#define MOD_SNMP_MIB_H
/* SNMPv2-MIB
*
* .iso.org.dod.internet.mgmt.mib-2.system
* 1 3 6 1 2 1 1
*
* .iso.org.dod.internet.snmpV2.snmpModules.snmpMIB.snmpMIBObjects.snmpTrap
* 1 3 6 1 6 3 1 1 4
*/
#define SNMP_MGMT_SYS_OID_BASE 1, 3, 6, 1, 2, 1, 1
#define SNMP_MGMT_SYS_OID_BASELEN 7
#define SNMP_MGMT_SYS_MIB_NAME_PREFIX "mgmt.mib-2.system."
#define SNMP_MGMT_SYS_OID_UPTIME SNMP_MGMT_SYS_OID_BASE, 1
#define SNMP_MGMT_SYS_OIDLEN_UPTIME SNMP_MGMT_SYS_OID_BASELEN + 1
#define SNMP_SNMP2_TRAP_OID_BASE 1, 3, 6, 1, 6, 3, 1, 1, 4
#define SNMP_SNMP2_TRAP_OID_BASELEN 9
#define SNMP_SNMP2_TRAP_MIB_NAME_PREFIX "snmpV2.snmpModules.snmpMIB.snmpMIBObjects.snmpTrap."
#define SNMP_SNMP2_TRAP_OID_OID SNMP_SNMP2_TRAP_OID_BASE, 1
#define SNMP_SNMP2_TRAP_OIDLEN_OID SNMP_SNMP2_TRAP_OID_BASELEN + 1
/* PROFTPD-MIB
*
* .iso.org.dod.internet.private.enterprises.proftpd.modules.snmp
* 1 3 6 1 4 1 17852 2 2
*
*/
#define SNMP_OID_BASE 1, 3, 6, 1, 4, 1, 17852, 2, 2
#define SNMP_OID_BASELEN 9
#define SNMP_MIB_NAME_PREFIX "proftpd.modules.snmp."
/* Groups under .snmp */
#define SNMP_CONN_OID_BASE SNMP_OID_BASE, 0
#define SNMP_CONN_OID_BASELEN SNMP_OID_BASELEN + 1
#define SNMP_DAEMON_OID_BASE SNMP_OID_BASE, 1
#define SNMP_DAEMON_OID_BASELEN SNMP_OID_BASELEN + 1
#define SNMP_TIMEOUTS_OID_BASE SNMP_OID_BASE, 2
#define SNMP_TIMEOUTS_OID_BASELEN SNMP_OID_BASELEN + 1
#define SNMP_FTP_OID_BASE SNMP_OID_BASE, 3
#define SNMP_FTP_OID_BASELEN SNMP_OID_BASELEN + 1
#define SNMP_SNMP_OID_BASE SNMP_OID_BASE, 4
#define SNMP_SNMP_OID_BASELEN SNMP_OID_BASELEN + 1
#define SNMP_TLS_OID_BASE SNMP_OID_BASE, 5
#define SNMP_TLS_OID_BASELEN SNMP_OID_BASELEN + 1
#define SNMP_SSH_OID_BASE SNMP_OID_BASE, 6
#define SNMP_SSH_OID_BASELEN SNMP_OID_BASELEN + 1
#define SNMP_SFTP_OID_BASE SNMP_OID_BASE, 7
#define SNMP_SFTP_OID_BASELEN SNMP_OID_BASELEN + 1
#define SNMP_SCP_OID_BASE SNMP_OID_BASE, 8
#define SNMP_SCP_OID_BASELEN SNMP_OID_BASELEN + 1
#define SNMP_BAN_OID_BASE SNMP_OID_BASE, 9
#define SNMP_BAN_OID_BASELEN SNMP_OID_BASELEN + 1
#if 0
#define SNMP_SQL_OID_BASE SNMP_OID_BASE, 9
#define SNMP_SQL_OID_BASELEN SNMP_OID_BASELEN + 1
#define SNMP_QUOTA_OID_BASE SNMP_OID_BASE, 10
#define SNMP_QUOTA_OID_BASELEN SNMP_OID_BASELEN + 1
#define SNMP_GEOIP_OID_BASE SNMP_OID_BASE, 12
#define SNMP_GEOIP_OID_BASELEN SNMP_OID_BASELEN + 1
#endif
/* Connection MIBs */
#define SNMP_MIB_CONN_OID_SERVER_NAME SNMP_CONN_OID_BASE, 1
#define SNMP_MIB_CONN_OIDLEN_SERVER_NAME SNMP_CONN_OID_BASELEN + 1
#define SNMP_MIB_CONN_OID_SERVER_ADDR SNMP_CONN_OID_BASE, 2
#define SNMP_MIB_CONN_OIDLEN_SERVER_ADDR SNMP_CONN_OID_BASELEN + 1
#define SNMP_MIB_CONN_OID_SERVER_PORT SNMP_CONN_OID_BASE, 3
#define SNMP_MIB_CONN_OIDLEN_SERVER_PORT SNMP_CONN_OID_BASELEN + 1
#define SNMP_MIB_CONN_OID_CLIENT_ADDR SNMP_CONN_OID_BASE, 4
#define SNMP_MIB_CONN_OIDLEN_CLIENT_ADDR SNMP_CONN_OID_BASELEN + 1
#define SNMP_MIB_CONN_OID_PID SNMP_CONN_OID_BASE, 5
#define SNMP_MIB_CONN_OIDLEN_PID SNMP_CONN_OID_BASELEN + 1
#define SNMP_MIB_CONN_OID_USER_NAME SNMP_CONN_OID_BASE, 6
#define SNMP_MIB_CONN_OIDLEN_USER_NAME SNMP_CONN_OID_BASELEN + 1
#define SNMP_MIB_CONN_OID_PROTOCOL SNMP_CONN_OID_BASE, 7
#define SNMP_MIB_CONN_OIDLEN_PROTOCOL SNMP_CONN_OID_BASELEN + 1
/* Daemon MIBs */
#define SNMP_MIB_DAEMON_OID_SOFTWARE SNMP_DAEMON_OID_BASE, 1
#define SNMP_MIB_DAEMON_OIDLEN_SOFTWARE SNMP_DAEMON_OID_BASELEN + 1
#define SNMP_MIB_DAEMON_OID_VERSION SNMP_DAEMON_OID_BASE, 2
#define SNMP_MIB_DAEMON_OIDLEN_VERSION SNMP_DAEMON_OID_BASELEN + 1
#define SNMP_MIB_DAEMON_OID_ADMIN SNMP_DAEMON_OID_BASE, 3
#define SNMP_MIB_DAEMON_OIDLEN_ADMIN SNMP_DAEMON_OID_BASELEN + 1
#define SNMP_MIB_DAEMON_OID_UPTIME SNMP_DAEMON_OID_BASE, 4
#define SNMP_MIB_DAEMON_OIDLEN_UPTIME SNMP_DAEMON_OID_BASELEN + 1
#define SNMP_MIB_DAEMON_OID_VHOST_COUNT SNMP_DAEMON_OID_BASE, 5
#define SNMP_MIB_DAEMON_OIDLEN_VHOST_COUNT SNMP_DAEMON_OID_BASELEN + 1
#define SNMP_MIB_DAEMON_OID_CONN_COUNT SNMP_DAEMON_OID_BASE, 6
#define SNMP_MIB_DAEMON_OIDLEN_CONN_COUNT SNMP_DAEMON_OID_BASELEN + 1
#define SNMP_MIB_DAEMON_OID_CONN_TOTAL SNMP_DAEMON_OID_BASE, 7
#define SNMP_MIB_DAEMON_OIDLEN_CONN_TOTAL SNMP_DAEMON_OID_BASELEN + 1
#define SNMP_MIB_DAEMON_OID_CONN_REFUSED_TOTAL \
SNMP_DAEMON_OID_BASE, 8
#define SNMP_MIB_DAEMON_OIDLEN_CONN_REFUSED_TOTAL \
SNMP_DAEMON_OID_BASELEN + 1
#define SNMP_MIB_DAEMON_OID_RESTART_COUNT SNMP_DAEMON_OID_BASE, 9
#define SNMP_MIB_DAEMON_OIDLEN_RESTART_COUNT SNMP_DAEMON_OID_BASELEN + 1
#define SNMP_MIB_DAEMON_OID_SEGFAULT_COUNT SNMP_DAEMON_OID_BASE, 10
#define SNMP_MIB_DAEMON_OIDLEN_SEGFAULT_COUNT SNMP_DAEMON_OID_BASELEN + 1
#define SNMP_MIB_DAEMON_OID_MAXINST_TOTAL SNMP_DAEMON_OID_BASE, 11
#define SNMP_MIB_DAEMON_OIDLEN_MAXINST_TOTAL SNMP_DAEMON_OID_BASELEN + 1
#define SNMP_MIB_DAEMON_OID_MAXINST_CONF SNMP_DAEMON_OID_BASE, 12
#define SNMP_MIB_DAEMON_OIDLEN_MAXINST_CONF SNMP_DAEMON_OID_BASELEN + 1
/* daemon.daemonNotifications MIBs */
#define SNMP_DAEMON_NOTIFY_OID_BASE SNMP_DAEMON_OID_BASE, 13
#define SNMP_DAEMON_NOTIFY_OID_BASELEN SNMP_DAEMON_OID_BASELEN + 1
#define SNMP_MIB_DAEMON_NOTIFY_OID_MAX_INSTANCES \
SNMP_DAEMON_NOTIFY_OID_BASE, 1
#define SNMP_MIB_DAEMON_NOTIFY_OIDLEN_MAX_INSTANCES \
SNMP_DAEMON_NOTIFY_OID_BASELEN + 1
/* timeouts MIBs */
#define SNMP_MIB_TIMEOUTS_OID_IDLE_TOTAL SNMP_TIMEOUTS_OID_BASE, 1
#define SNMP_MIB_TIMEOUTS_OIDLEN_IDLE_TOTAL SNMP_TIMEOUTS_OID_BASELEN + 1
#define SNMP_MIB_TIMEOUTS_OID_LOGIN_TOTAL SNMP_TIMEOUTS_OID_BASE, 2
#define SNMP_MIB_TIMEOUTS_OIDLEN_LOGIN_TOTAL SNMP_TIMEOUTS_OID_BASELEN + 1
#define SNMP_MIB_TIMEOUTS_OID_NOXFER_TOTAL SNMP_TIMEOUTS_OID_BASE, 3
#define SNMP_MIB_TIMEOUTS_OIDLEN_NOXFER_TOTAL SNMP_TIMEOUTS_OID_BASELEN + 1
#define SNMP_MIB_TIMEOUTS_OID_STALLED_TOTAL SNMP_TIMEOUTS_OID_BASE, 4
#define SNMP_MIB_TIMEOUTS_OIDLEN_STALLED_TOTAL SNMP_TIMEOUTS_OID_BASELEN + 1
/* ftp.sessions MIBs */
#define SNMP_FTP_SESS_OID_BASE SNMP_FTP_OID_BASE, 1
#define SNMP_FTP_SESS_OID_BASELEN SNMP_FTP_OID_BASELEN + 1
#define SNMP_MIB_FTP_SESS_OID_SESS_COUNT SNMP_FTP_SESS_OID_BASE, 1
#define SNMP_MIB_FTP_SESS_OIDLEN_SESS_COUNT SNMP_FTP_SESS_OID_BASELEN + 1
#define SNMP_MIB_FTP_SESS_OID_SESS_TOTAL SNMP_FTP_SESS_OID_BASE, 2
#define SNMP_MIB_FTP_SESS_OIDLEN_SESS_TOTAL SNMP_FTP_SESS_OID_BASELEN + 1
#define SNMP_MIB_FTP_SESS_OID_CMD_INVALID_TOTAL \
SNMP_FTP_SESS_OID_BASE, 3
#define SNMP_MIB_FTP_SESS_OIDLEN_CMD_INVALID_TOTAL \
SNMP_FTP_SESS_OID_BASELEN + 1
/* ftp.logins MIBs */
#define SNMP_FTP_LOGINS_OID_BASE SNMP_FTP_OID_BASE, 2
#define SNMP_FTP_LOGINS_OID_BASELEN SNMP_FTP_OID_BASELEN + 1
#define SNMP_MIB_FTP_LOGINS_OID_TOTAL SNMP_FTP_LOGINS_OID_BASE, 1
#define SNMP_MIB_FTP_LOGINS_OIDLEN_TOTAL SNMP_FTP_LOGINS_OID_BASELEN + 1
#define SNMP_MIB_FTP_LOGINS_OID_ERR_TOTAL SNMP_FTP_LOGINS_OID_BASE, 2
#define SNMP_MIB_FTP_LOGINS_OIDLEN_ERR_TOTAL SNMP_FTP_LOGINS_OID_BASELEN + 1
#define SNMP_MIB_FTP_LOGINS_OID_ERR_BAD_USER_TOTAL \
SNMP_FTP_LOGINS_OID_BASE, 3
#define SNMP_MIB_FTP_LOGINS_OIDLEN_ERR_BAD_USER_TOTAL \
SNMP_FTP_LOGINS_OID_BASELEN + 1
#define SNMP_MIB_FTP_LOGINS_OID_ERR_BAD_PASSWD_TOTAL \
SNMP_FTP_LOGINS_OID_BASE, 4
#define SNMP_MIB_FTP_LOGINS_OIDLEN_ERR_BAD_PASSWD_TOTAL \
SNMP_FTP_LOGINS_OID_BASELEN + 1
#define SNMP_MIB_FTP_LOGINS_OID_ERR_GENERAL_TOTAL \
SNMP_FTP_LOGINS_OID_BASE, 5
#define SNMP_MIB_FTP_LOGINS_OIDLEN_ERR_GENERAL_TOTAL \
SNMP_FTP_LOGINS_OID_BASELEN + 1
#define SNMP_MIB_FTP_LOGINS_OID_ANON_COUNT SNMP_FTP_LOGINS_OID_BASE, 6
#define SNMP_MIB_FTP_LOGINS_OIDLEN_ANON_COUNT SNMP_FTP_LOGINS_OID_BASELEN + 1
#define SNMP_MIB_FTP_LOGINS_OID_ANON_TOTAL SNMP_FTP_LOGINS_OID_BASE, 7
#define SNMP_MIB_FTP_LOGINS_OIDLEN_ANON_TOTAL SNMP_FTP_LOGINS_OID_BASELEN + 1
/* ftp.dataTransfers MIBs */
#define SNMP_FTP_XFERS_OID_BASE SNMP_FTP_OID_BASE, 3
#define SNMP_FTP_XFERS_OID_BASELEN SNMP_FTP_OID_BASELEN + 1
#define SNMP_MIB_FTP_XFERS_OID_DIR_LIST_COUNT \
SNMP_FTP_XFERS_OID_BASE, 1
#define SNMP_MIB_FTP_XFERS_OIDLEN_DIR_LIST_COUNT \
SNMP_FTP_XFERS_OID_BASELEN + 1
#define SNMP_MIB_FTP_XFERS_OID_DIR_LIST_TOTAL \
SNMP_FTP_XFERS_OID_BASE, 2
#define SNMP_MIB_FTP_XFERS_OIDLEN_DIR_LIST_TOTAL \
SNMP_FTP_XFERS_OID_BASELEN + 1
#define SNMP_MIB_FTP_XFERS_OID_DIR_LIST_ERR_TOTAL \
SNMP_FTP_XFERS_OID_BASE, 3
#define SNMP_MIB_FTP_XFERS_OIDLEN_DIR_LIST_ERR_TOTAL \
SNMP_FTP_XFERS_OID_BASELEN + 1
#define SNMP_MIB_FTP_XFERS_OID_FILE_UPLOAD_COUNT \
SNMP_FTP_XFERS_OID_BASE, 4
#define SNMP_MIB_FTP_XFERS_OIDLEN_FILE_UPLOAD_COUNT \
SNMP_FTP_XFERS_OID_BASELEN + 1
#define SNMP_MIB_FTP_XFERS_OID_FILE_UPLOAD_TOTAL \
SNMP_FTP_XFERS_OID_BASE, 5
#define SNMP_MIB_FTP_XFERS_OIDLEN_FILE_UPLOAD_TOTAL \
SNMP_FTP_XFERS_OID_BASELEN + 1
#define SNMP_MIB_FTP_XFERS_OID_FILE_UPLOAD_ERR_TOTAL \
SNMP_FTP_XFERS_OID_BASE, 6
#define SNMP_MIB_FTP_XFERS_OIDLEN_FILE_UPLOAD_ERR_TOTAL \
SNMP_FTP_XFERS_OID_BASELEN + 1
#define SNMP_MIB_FTP_XFERS_OID_FILE_DOWNLOAD_COUNT \
SNMP_FTP_XFERS_OID_BASE, 7
#define SNMP_MIB_FTP_XFERS_OIDLEN_FILE_DOWNLOAD_COUNT \
SNMP_FTP_XFERS_OID_BASELEN + 1
#define SNMP_MIB_FTP_XFERS_OID_FILE_DOWNLOAD_TOTAL \
SNMP_FTP_XFERS_OID_BASE, 8
#define SNMP_MIB_FTP_XFERS_OIDLEN_FILE_DOWNLOAD_TOTAL \
SNMP_FTP_XFERS_OID_BASELEN + 1
#define SNMP_MIB_FTP_XFERS_OID_FILE_DOWNLOAD_ERR_TOTAL \
SNMP_FTP_XFERS_OID_BASE, 9
#define SNMP_MIB_FTP_XFERS_OIDLEN_FILE_DOWNLOAD_ERR_TOTAL \
SNMP_FTP_XFERS_OID_BASELEN + 1
#define SNMP_MIB_FTP_XFERS_OID_KB_UPLOAD_TOTAL \
SNMP_FTP_XFERS_OID_BASE, 10
#define SNMP_MIB_FTP_XFERS_OIDLEN_KB_UPLOAD_TOTAL \
SNMP_FTP_XFERS_OID_BASELEN + 1
#define SNMP_MIB_FTP_XFERS_OID_KB_DOWNLOAD_TOTAL \
SNMP_FTP_XFERS_OID_BASE, 11
#define SNMP_MIB_FTP_XFERS_OIDLEN_KB_DOWNLOAD_TOTAL \
SNMP_FTP_XFERS_OID_BASELEN + 1
/* ftp.notifications MIBs */
#define SNMP_FTP_NOTIFY_OID_BASE SNMP_FTP_OID_BASE, 5
#define SNMP_FTP_NOTIFY_OID_BASELEN SNMP_FTP_OID_BASELEN + 1
#define SNMP_MIB_FTP_NOTIFY_OID_LOGIN_BAD_PASSWORD \
SNMP_FTP_NOTIFY_OID_BASE, 1
#define SNMP_MIB_FTP_NOTIFY_OIDLEN_LOGIN_BAD_PASSWORD \
SNMP_FTP_NOTIFY_OID_BASELEN + 1
#define SNMP_MIB_FTP_NOTIFY_OID_LOGIN_BAD_USER \
SNMP_FTP_NOTIFY_OID_BASE, 2
#define SNMP_MIB_FTP_NOTIFY_OIDLEN_LOGIN_BAD_USER \
SNMP_FTP_NOTIFY_OID_BASELEN + 1
/* snmp MIBs */
#define SNMP_MIB_SNMP_OID_PKTS_RECVD_TOTAL SNMP_SNMP_OID_BASE, 1
#define SNMP_MIB_SNMP_OIDLEN_PKTS_RECVD_TOTAL SNMP_SNMP_OID_BASELEN + 1
#define SNMP_MIB_SNMP_OID_PKTS_SENT_TOTAL SNMP_SNMP_OID_BASE, 2
#define SNMP_MIB_SNMP_OIDLEN_PKTS_SENT_TOTAL SNMP_SNMP_OID_BASELEN + 1
#define SNMP_MIB_SNMP_OID_TRAPS_SENT_TOTAL SNMP_SNMP_OID_BASE, 3
#define SNMP_MIB_SNMP_OIDLEN_TRAPS_SENT_TOTAL SNMP_SNMP_OID_BASELEN + 1
#define SNMP_MIB_SNMP_OID_PKTS_AUTH_ERR_TOTAL \
SNMP_SNMP_OID_BASE, 4
#define SNMP_MIB_SNMP_OIDLEN_PKTS_AUTH_ERR_TOTAL \
SNMP_SNMP_OID_BASELEN + 1
#define SNMP_MIB_SNMP_OID_PKTS_DROPPED_TOTAL \
SNMP_SNMP_OID_BASE, 5
#define SNMP_MIB_SNMP_OIDLEN_PKTS_DROPPED_TOTAL \
SNMP_SNMP_OID_BASELEN + 1
/* ftps.tlsSessions MIBs */
#define SNMP_FTPS_SESS_OID_BASE SNMP_TLS_OID_BASE, 1
#define SNMP_FTPS_SESS_OID_BASELEN SNMP_TLS_OID_BASELEN + 1
#define SNMP_MIB_FTPS_SESS_OID_SESS_COUNT SNMP_FTPS_SESS_OID_BASE, 1
#define SNMP_MIB_FTPS_SESS_OIDLEN_SESS_COUNT SNMP_FTPS_SESS_OID_BASELEN + 1
#define SNMP_MIB_FTPS_SESS_OID_SESS_TOTAL SNMP_FTPS_SESS_OID_BASE, 2
#define SNMP_MIB_FTPS_SESS_OIDLEN_SESS_TOTAL SNMP_FTPS_SESS_OID_BASELEN + 1
#define SNMP_MIB_FTPS_SESS_OID_CTRL_HANDSHAKE_ERR_TOTAL \
SNMP_FTPS_SESS_OID_BASE, 3
#define SNMP_MIB_FTPS_SESS_OIDLEN_CTRL_HANDSHAKE_ERR_TOTAL \
SNMP_FTPS_SESS_OID_BASELEN + 1
#define SNMP_MIB_FTPS_SESS_OID_DATA_HANDSHAKE_ERR_TOTAL \
SNMP_FTPS_SESS_OID_BASE, 4
#define SNMP_MIB_FTPS_SESS_OIDLEN_DATA_HANDSHAKE_ERR_TOTAL \
SNMP_FTPS_SESS_OID_BASELEN + 1
#define SNMP_MIB_FTPS_SESS_OID_CCC_TOTAL SNMP_FTPS_SESS_OID_BASE, 5
#define SNMP_MIB_FTPS_SESS_OIDLEN_CCC_TOTAL SNMP_FTPS_SESS_OID_BASELEN + 1
#define SNMP_MIB_FTPS_SESS_OID_CCC_ERR_TOTAL SNMP_FTPS_SESS_OID_BASE, 6
#define SNMP_MIB_FTPS_SESS_OIDLEN_CCC_ERR_TOTAL SNMP_FTPS_SESS_OID_BASELEN + 1
#define SNMP_MIB_FTPS_SESS_OID_VERIFY_CLIENT_TOTAL \
SNMP_FTPS_SESS_OID_BASE, 7
#define SNMP_MIB_FTPS_SESS_OIDLEN_VERIFY_CLIENT_TOTAL \
SNMP_FTPS_SESS_OID_BASELEN + 1
#define SNMP_MIB_FTPS_SESS_OID_VERIFY_CLIENT_ERR_TOTAL \
SNMP_FTPS_SESS_OID_BASE, 8
#define SNMP_MIB_FTPS_SESS_OIDLEN_VERIFY_CLIENT_ERR_TOTAL \
SNMP_FTPS_SESS_OID_BASELEN + 1
/* ftps.tlsLogins MIBs */
#define SNMP_FTPS_LOGINS_OID_BASE SNMP_TLS_OID_BASE, 2
#define SNMP_FTPS_LOGINS_OID_BASELEN SNMP_TLS_OID_BASELEN + 1
#define SNMP_MIB_FTPS_LOGINS_OID_TOTAL SNMP_FTPS_LOGINS_OID_BASE, 1
#define SNMP_MIB_FTPS_LOGINS_OIDLEN_TOTAL SNMP_FTPS_LOGINS_OID_BASELEN + 1
#define SNMP_MIB_FTPS_LOGINS_OID_ERR_TOTAL SNMP_FTPS_LOGINS_OID_BASE, 2
#define SNMP_MIB_FTPS_LOGINS_OIDLEN_ERR_TOTAL SNMP_FTPS_LOGINS_OID_BASELEN + 1
#define SNMP_MIB_FTPS_LOGINS_OID_ERR_BAD_USER_TOTAL \
SNMP_FTPS_LOGINS_OID_BASE, 3
#define SNMP_MIB_FTPS_LOGINS_OIDLEN_ERR_BAD_USER_TOTAL \
SNMP_FTPS_LOGINS_OID_BASELEN + 1
#define SNMP_MIB_FTPS_LOGINS_OID_ERR_BAD_PASSWD_TOTAL \
SNMP_FTPS_LOGINS_OID_BASE, 4
#define SNMP_MIB_FTPS_LOGINS_OIDLEN_ERR_BAD_PASSWD_TOTAL \
SNMP_FTPS_LOGINS_OID_BASELEN + 1
#define SNMP_MIB_FTPS_LOGINS_OID_ERR_GENERAL_TOTAL \
SNMP_FTPS_LOGINS_OID_BASE, 5
#define SNMP_MIB_FTPS_LOGINS_OIDLEN_ERR_GENERAL_TOTAL \
SNMP_FTPS_LOGINS_OID_BASELEN + 1
#define SNMP_MIB_FTPS_LOGINS_OID_CERT_TOTAL SNMP_FTPS_LOGINS_OID_BASE, 6
#define SNMP_MIB_FTPS_LOGINS_OIDLEN_CERT_TOTAL SNMP_FTPS_LOGINS_OID_BASELEN + 1
/* ftps.tlsDataTransfers MIBs */
#define SNMP_FTPS_XFERS_OID_BASE SNMP_TLS_OID_BASE, 3
#define SNMP_FTPS_XFERS_OID_BASELEN SNMP_TLS_OID_BASELEN + 1
#define SNMP_MIB_FTPS_XFERS_OID_DIR_LIST_COUNT \
SNMP_FTPS_XFERS_OID_BASE, 1
#define SNMP_MIB_FTPS_XFERS_OIDLEN_DIR_LIST_COUNT \
SNMP_FTPS_XFERS_OID_BASELEN + 1
#define SNMP_MIB_FTPS_XFERS_OID_DIR_LIST_TOTAL \
SNMP_FTPS_XFERS_OID_BASE, 2
#define SNMP_MIB_FTPS_XFERS_OIDLEN_DIR_LIST_TOTAL \
SNMP_FTPS_XFERS_OID_BASELEN + 1
#define SNMP_MIB_FTPS_XFERS_OID_DIR_LIST_ERR_TOTAL \
SNMP_FTPS_XFERS_OID_BASE, 3
#define SNMP_MIB_FTPS_XFERS_OIDLEN_DIR_LIST_ERR_TOTAL \
SNMP_FTPS_XFERS_OID_BASELEN + 1
#define SNMP_MIB_FTPS_XFERS_OID_FILE_UPLOAD_COUNT \
SNMP_FTPS_XFERS_OID_BASE, 4
#define SNMP_MIB_FTPS_XFERS_OIDLEN_FILE_UPLOAD_COUNT \
SNMP_FTPS_XFERS_OID_BASELEN + 1
#define SNMP_MIB_FTPS_XFERS_OID_FILE_UPLOAD_TOTAL \
SNMP_FTPS_XFERS_OID_BASE, 5
#define SNMP_MIB_FTPS_XFERS_OIDLEN_FILE_UPLOAD_TOTAL \
SNMP_FTPS_XFERS_OID_BASELEN + 1
#define SNMP_MIB_FTPS_XFERS_OID_FILE_UPLOAD_ERR_TOTAL \
SNMP_FTPS_XFERS_OID_BASE, 6
#define SNMP_MIB_FTPS_XFERS_OIDLEN_FILE_UPLOAD_ERR_TOTAL \
SNMP_FTPS_XFERS_OID_BASELEN + 1
#define SNMP_MIB_FTPS_XFERS_OID_FILE_DOWNLOAD_COUNT \
SNMP_FTPS_XFERS_OID_BASE, 7
#define SNMP_MIB_FTPS_XFERS_OIDLEN_FILE_DOWNLOAD_COUNT \
SNMP_FTPS_XFERS_OID_BASELEN + 1
#define SNMP_MIB_FTPS_XFERS_OID_FILE_DOWNLOAD_TOTAL \
SNMP_FTPS_XFERS_OID_BASE, 8
#define SNMP_MIB_FTPS_XFERS_OIDLEN_FILE_DOWNLOAD_TOTAL \
SNMP_FTPS_XFERS_OID_BASELEN + 1
#define SNMP_MIB_FTPS_XFERS_OID_FILE_DOWNLOAD_ERR_TOTAL \
SNMP_FTPS_XFERS_OID_BASE, 9
#define SNMP_MIB_FTPS_XFERS_OIDLEN_FILE_DOWNLOAD_ERR_TOTAL \
SNMP_FTPS_XFERS_OID_BASELEN + 1
#define SNMP_MIB_FTPS_XFERS_OID_KB_UPLOAD_TOTAL \
SNMP_FTPS_XFERS_OID_BASE, 10
#define SNMP_MIB_FTPS_XFERS_OIDLEN_KB_UPLOAD_TOTAL \
SNMP_FTPS_XFERS_OID_BASELEN + 1
#define SNMP_MIB_FTPS_XFERS_OID_KB_DOWNLOAD_TOTAL \
SNMP_FTPS_XFERS_OID_BASE, 11
#define SNMP_MIB_FTPS_XFERS_OIDLEN_KB_DOWNLOAD_TOTAL \
SNMP_FTPS_XFERS_OID_BASELEN + 1
/* ssh.sshSessions MIBs */
#define SNMP_SSH_SESS_OID_BASE SNMP_SSH_OID_BASE, 1
#define SNMP_SSH_SESS_OID_BASELEN SNMP_SSH_OID_BASELEN + 1
#define SNMP_MIB_SSH_SESS_OID_KEX_ERR_TOTAL SNMP_SSH_SESS_OID_BASE, 1
#define SNMP_MIB_SSH_SESS_OIDLEN_KEX_ERR_TOTAL SNMP_SSH_SESS_OID_BASELEN + 1
#define SNMP_MIB_SSH_SESS_OID_C2S_COMPRESS_TOTAL \
SNMP_SSH_SESS_OID_BASE, 2
#define SNMP_MIB_SSH_SESS_OIDLEN_C2S_COMPRESS_TOTAL \
SNMP_SSH_SESS_OID_BASELEN + 1
#define SNMP_MIB_SSH_SESS_OID_S2C_COMPRESS_TOTAL \
SNMP_SSH_SESS_OID_BASE, 3
#define SNMP_MIB_SSH_SESS_OIDLEN_S2C_COMPRESS_TOTAL \
SNMP_SSH_SESS_OID_BASELEN + 1
/* ssh.sshLogins MIBs */
#define SNMP_SSH_LOGINS_OID_BASE SNMP_SSH_OID_BASE, 2
#define SNMP_SSH_LOGINS_OID_BASELEN SNMP_SSH_OID_BASELEN + 1
#define SNMP_MIB_SSH_LOGINS_OID_HOSTBASED_TOTAL \
SNMP_SSH_LOGINS_OID_BASE, 1
#define SNMP_MIB_SSH_LOGINS_OIDLEN_HOSTBASED_TOTAL \
SNMP_SSH_LOGINS_OID_BASELEN + 1
#define SNMP_MIB_SSH_LOGINS_OID_HOSTBASED_ERR_TOTAL \
SNMP_SSH_LOGINS_OID_BASE, 2
#define SNMP_MIB_SSH_LOGINS_OIDLEN_HOSTBASED_ERR_TOTAL \
SNMP_SSH_LOGINS_OID_BASELEN + 1
#define SNMP_MIB_SSH_LOGINS_OID_KBDINT_TOTAL \
SNMP_SSH_LOGINS_OID_BASE, 3
#define SNMP_MIB_SSH_LOGINS_OIDLEN_KBDINT_TOTAL \
SNMP_SSH_LOGINS_OID_BASELEN + 1
#define SNMP_MIB_SSH_LOGINS_OID_KBDINT_ERR_TOTAL \
SNMP_SSH_LOGINS_OID_BASE, 4
#define SNMP_MIB_SSH_LOGINS_OIDLEN_KBDINT_ERR_TOTAL \
SNMP_SSH_LOGINS_OID_BASELEN + 1
#define SNMP_MIB_SSH_LOGINS_OID_PASSWD_TOTAL \
SNMP_SSH_LOGINS_OID_BASE, 5
#define SNMP_MIB_SSH_LOGINS_OIDLEN_PASSWD_TOTAL \
SNMP_SSH_LOGINS_OID_BASELEN + 1
#define SNMP_MIB_SSH_LOGINS_OID_PASSWD_ERR_TOTAL \
SNMP_SSH_LOGINS_OID_BASE, 6
#define SNMP_MIB_SSH_LOGINS_OIDLEN_PASSWD_ERR_TOTAL \
SNMP_SSH_LOGINS_OID_BASELEN + 1
#define SNMP_MIB_SSH_LOGINS_OID_PUBLICKEY_TOTAL \
SNMP_SSH_LOGINS_OID_BASE, 7
#define SNMP_MIB_SSH_LOGINS_OIDLEN_PUBLICKEY_TOTAL \
SNMP_SSH_LOGINS_OID_BASELEN + 1
#define SNMP_MIB_SSH_LOGINS_OID_PUBLICKEY_ERR_TOTAL \
SNMP_SSH_LOGINS_OID_BASE, 8
#define SNMP_MIB_SSH_LOGINS_OIDLEN_PUBLICKEY_ERR_TOTAL \
SNMP_SSH_LOGINS_OID_BASELEN + 1
/* sftp.sftpSessions MIBs */
#define SNMP_SFTP_SESS_OID_BASE SNMP_SFTP_OID_BASE, 1
#define SNMP_SFTP_SESS_OID_BASELEN SNMP_SFTP_OID_BASELEN + 1
#define SNMP_MIB_SFTP_SESS_OID_COUNT SNMP_SFTP_SESS_OID_BASE, 1
#define SNMP_MIB_SFTP_SESS_OIDLEN_COUNT SNMP_SFTP_SESS_OID_BASELEN + 1
#define SNMP_MIB_SFTP_SESS_OID_TOTAL SNMP_SFTP_SESS_OID_BASE, 2
#define SNMP_MIB_SFTP_SESS_OIDLEN_TOTAL SNMP_SFTP_SESS_OID_BASELEN + 1
#define SNMP_MIB_SFTP_SESS_OID_V3_TOTAL SNMP_SFTP_SESS_OID_BASE, 3
#define SNMP_MIB_SFTP_SESS_OIDLEN_V3_TOTAL SNMP_SFTP_SESS_OID_BASELEN + 1
#define SNMP_MIB_SFTP_SESS_OID_V4_TOTAL SNMP_SFTP_SESS_OID_BASE, 4
#define SNMP_MIB_SFTP_SESS_OIDLEN_V4_TOTAL SNMP_SFTP_SESS_OID_BASELEN + 1
#define SNMP_MIB_SFTP_SESS_OID_V5_TOTAL SNMP_SFTP_SESS_OID_BASE, 5
#define SNMP_MIB_SFTP_SESS_OIDLEN_V5_TOTAL SNMP_SFTP_SESS_OID_BASELEN + 1
#define SNMP_MIB_SFTP_SESS_OID_V6_TOTAL SNMP_SFTP_SESS_OID_BASE, 6
#define SNMP_MIB_SFTP_SESS_OIDLEN_V6_TOTAL SNMP_SFTP_SESS_OID_BASELEN + 1
/* sftp.sftpDataTransfers MIBs */
#define SNMP_SFTP_XFERS_OID_BASE SNMP_SFTP_OID_BASE, 2
#define SNMP_SFTP_XFERS_OID_BASELEN SNMP_SFTP_OID_BASELEN + 1
#define SNMP_MIB_SFTP_XFERS_OID_DIR_LIST_COUNT \
SNMP_SFTP_XFERS_OID_BASE, 1
#define SNMP_MIB_SFTP_XFERS_OIDLEN_DIR_LIST_COUNT \
SNMP_SFTP_XFERS_OID_BASELEN + 1
#define SNMP_MIB_SFTP_XFERS_OID_DIR_LIST_TOTAL \
SNMP_SFTP_XFERS_OID_BASE, 2
#define SNMP_MIB_SFTP_XFERS_OIDLEN_DIR_LIST_TOTAL \
SNMP_SFTP_XFERS_OID_BASELEN + 1
#define SNMP_MIB_SFTP_XFERS_OID_DIR_LIST_ERR_TOTAL \
SNMP_SFTP_XFERS_OID_BASE, 3
#define SNMP_MIB_SFTP_XFERS_OIDLEN_DIR_LIST_ERR_TOTAL \
SNMP_SFTP_XFERS_OID_BASELEN + 1
#define SNMP_MIB_SFTP_XFERS_OID_FILE_UPLOAD_COUNT \
SNMP_SFTP_XFERS_OID_BASE, 4
#define SNMP_MIB_SFTP_XFERS_OIDLEN_FILE_UPLOAD_COUNT \
SNMP_SFTP_XFERS_OID_BASELEN + 1
#define SNMP_MIB_SFTP_XFERS_OID_FILE_UPLOAD_TOTAL \
SNMP_SFTP_XFERS_OID_BASE, 5
#define SNMP_MIB_SFTP_XFERS_OIDLEN_FILE_UPLOAD_TOTAL \
SNMP_SFTP_XFERS_OID_BASELEN + 1
#define SNMP_MIB_SFTP_XFERS_OID_FILE_UPLOAD_ERR_TOTAL \
SNMP_SFTP_XFERS_OID_BASE, 6
#define SNMP_MIB_SFTP_XFERS_OIDLEN_FILE_UPLOAD_ERR_TOTAL \
SNMP_SFTP_XFERS_OID_BASELEN + 1
#define SNMP_MIB_SFTP_XFERS_OID_FILE_DOWNLOAD_COUNT \
SNMP_SFTP_XFERS_OID_BASE, 7
#define SNMP_MIB_SFTP_XFERS_OIDLEN_FILE_DOWNLOAD_COUNT \
SNMP_SFTP_XFERS_OID_BASELEN + 1
#define SNMP_MIB_SFTP_XFERS_OID_FILE_DOWNLOAD_TOTAL \
SNMP_SFTP_XFERS_OID_BASE, 8
#define SNMP_MIB_SFTP_XFERS_OIDLEN_FILE_DOWNLOAD_TOTAL \
SNMP_SFTP_XFERS_OID_BASELEN + 1
#define SNMP_MIB_SFTP_XFERS_OID_FILE_DOWNLOAD_ERR_TOTAL \
SNMP_SFTP_XFERS_OID_BASE, 9
#define SNMP_MIB_SFTP_XFERS_OIDLEN_FILE_DOWNLOAD_ERR_TOTAL \
SNMP_SFTP_XFERS_OID_BASELEN + 1
#define SNMP_MIB_SFTP_XFERS_OID_KB_UPLOAD_TOTAL \
SNMP_SFTP_XFERS_OID_BASE, 10
#define SNMP_MIB_SFTP_XFERS_OIDLEN_KB_UPLOAD_TOTAL \
SNMP_SFTP_XFERS_OID_BASELEN + 1
#define SNMP_MIB_SFTP_XFERS_OID_KB_DOWNLOAD_TOTAL \
SNMP_SFTP_XFERS_OID_BASE, 11
#define SNMP_MIB_SFTP_XFERS_OIDLEN_KB_DOWNLOAD_TOTAL \
SNMP_SFTP_XFERS_OID_BASELEN + 1
/* scp.scpSessions MIBs */
#define SNMP_SCP_SESS_OID_BASE SNMP_SCP_OID_BASE, 1
#define SNMP_SCP_SESS_OID_BASELEN SNMP_SCP_OID_BASELEN + 1
#define SNMP_MIB_SCP_SESS_OID_COUNT SNMP_SCP_SESS_OID_BASE, 1
#define SNMP_MIB_SCP_SESS_OIDLEN_COUNT SNMP_SCP_SESS_OID_BASELEN + 1
#define SNMP_MIB_SCP_SESS_OID_TOTAL SNMP_SCP_SESS_OID_BASE, 2
#define SNMP_MIB_SCP_SESS_OIDLEN_TOTAL SNMP_SCP_SESS_OID_BASELEN + 1
/* scp.scpDataTransfers MIBs */
#define SNMP_SCP_XFERS_OID_BASE SNMP_SCP_OID_BASE, 2
#define SNMP_SCP_XFERS_OID_BASELEN SNMP_SCP_OID_BASELEN + 1
#define SNMP_MIB_SCP_XFERS_OID_FILE_UPLOAD_COUNT \
SNMP_SCP_XFERS_OID_BASE, 1
#define SNMP_MIB_SCP_XFERS_OIDLEN_FILE_UPLOAD_COUNT \
SNMP_SCP_XFERS_OID_BASELEN + 1
#define SNMP_MIB_SCP_XFERS_OID_FILE_UPLOAD_TOTAL \
SNMP_SCP_XFERS_OID_BASE, 2
#define SNMP_MIB_SCP_XFERS_OIDLEN_FILE_UPLOAD_TOTAL \
SNMP_SCP_XFERS_OID_BASELEN + 1
#define SNMP_MIB_SCP_XFERS_OID_FILE_UPLOAD_ERR_TOTAL \
SNMP_SCP_XFERS_OID_BASE, 3
#define SNMP_MIB_SCP_XFERS_OIDLEN_FILE_UPLOAD_ERR_TOTAL \
SNMP_SCP_XFERS_OID_BASELEN + 1
#define SNMP_MIB_SCP_XFERS_OID_FILE_DOWNLOAD_COUNT \
SNMP_SCP_XFERS_OID_BASE, 4
#define SNMP_MIB_SCP_XFERS_OIDLEN_FILE_DOWNLOAD_COUNT \
SNMP_SCP_XFERS_OID_BASELEN + 1
#define SNMP_MIB_SCP_XFERS_OID_FILE_DOWNLOAD_TOTAL \
SNMP_SCP_XFERS_OID_BASE, 5
#define SNMP_MIB_SCP_XFERS_OIDLEN_FILE_DOWNLOAD_TOTAL \
SNMP_SCP_XFERS_OID_BASELEN + 1
#define SNMP_MIB_SCP_XFERS_OID_FILE_DOWNLOAD_ERR_TOTAL \
SNMP_SCP_XFERS_OID_BASE, 6
#define SNMP_MIB_SCP_XFERS_OIDLEN_FILE_DOWNLOAD_ERR_TOTAL \
SNMP_SCP_XFERS_OID_BASELEN + 1
#define SNMP_MIB_SCP_XFERS_OID_KB_UPLOAD_TOTAL \
SNMP_SCP_XFERS_OID_BASE, 7
#define SNMP_MIB_SCP_XFERS_OIDLEN_KB_UPLOAD_TOTAL \
SNMP_SCP_XFERS_OID_BASELEN + 1
#define SNMP_MIB_SCP_XFERS_OID_KB_DOWNLOAD_TOTAL \
SNMP_SCP_XFERS_OID_BASE, 8
#define SNMP_MIB_SCP_XFERS_OIDLEN_KB_DOWNLOAD_TOTAL \
SNMP_SCP_XFERS_OID_BASELEN + 1
/* ban.connections MIBs */
#define SNMP_BAN_CONNS_OID_BASE SNMP_BAN_OID_BASE, 1
#define SNMP_BAN_CONNS_OID_BASELEN SNMP_BAN_OID_BASELEN + 1
#define SNMP_MIB_BAN_CONNS_OID_CONN_BAN_TOTAL \
SNMP_BAN_CONNS_OID_BASE, 1
#define SNMP_MIB_BAN_CONNS_OIDLEN_CONN_BAN_TOTAL \
SNMP_BAN_CONNS_OID_BASELEN + 1
#define SNMP_MIB_BAN_CONNS_OID_USER_BAN_TOTAL \
SNMP_BAN_CONNS_OID_BASE, 2
#define SNMP_MIB_BAN_CONNS_OIDLEN_USER_BAN_TOTAL \
SNMP_BAN_CONNS_OID_BASELEN + 1
#define SNMP_MIB_BAN_CONNS_OID_HOST_BAN_TOTAL \
SNMP_BAN_CONNS_OID_BASE, 3
#define SNMP_MIB_BAN_CONNS_OIDLEN_HOST_BAN_TOTAL \
SNMP_BAN_CONNS_OID_BASELEN + 1
#define SNMP_MIB_BAN_CONNS_OID_CLASS_BAN_TOTAL \
SNMP_BAN_CONNS_OID_BASE, 4
#define SNMP_MIB_BAN_CONNS_OIDLEN_CLASS_BAN_TOTAL \
SNMP_BAN_CONNS_OID_BASELEN + 1
/* ban.bans MIBs */
#define SNMP_BAN_BANS_OID_BASE SNMP_BAN_OID_BASE, 2
#define SNMP_BAN_BANS_OID_BASELEN SNMP_BAN_OID_BASELEN + 1
#define SNMP_MIB_BAN_BANS_OID_BAN_COUNT SNMP_BAN_BANS_OID_BASE, 1
#define SNMP_MIB_BAN_BANS_OIDLEN_BAN_COUNT SNMP_BAN_BANS_OID_BASELEN + 1
#define SNMP_MIB_BAN_BANS_OID_BAN_TOTAL SNMP_BAN_BANS_OID_BASE, 2
#define SNMP_MIB_BAN_BANS_OIDLEN_BAN_TOTAL SNMP_BAN_BANS_OID_BASELEN + 1
#define SNMP_MIB_BAN_BANS_OID_USER_BAN_COUNT \
SNMP_BAN_BANS_OID_BASE, 3
#define SNMP_MIB_BAN_BANS_OIDLEN_USER_BAN_COUNT \
SNMP_BAN_BANS_OID_BASELEN + 1
#define SNMP_MIB_BAN_BANS_OID_USER_BAN_TOTAL \
SNMP_BAN_BANS_OID_BASE, 4
#define SNMP_MIB_BAN_BANS_OIDLEN_USER_BAN_TOTAL \
SNMP_BAN_BANS_OID_BASELEN + 1
#define SNMP_MIB_BAN_BANS_OID_HOST_BAN_COUNT \
SNMP_BAN_BANS_OID_BASE, 5
#define SNMP_MIB_BAN_BANS_OIDLEN_HOST_BAN_COUNT \
SNMP_BAN_BANS_OID_BASELEN + 1
#define SNMP_MIB_BAN_BANS_OID_HOST_BAN_TOTAL \
SNMP_BAN_BANS_OID_BASE, 6
#define SNMP_MIB_BAN_BANS_OIDLEN_HOST_BAN_TOTAL \
SNMP_BAN_BANS_OID_BASELEN + 1
#define SNMP_MIB_BAN_BANS_OID_CLASS_BAN_COUNT \
SNMP_BAN_BANS_OID_BASE, 7
#define SNMP_MIB_BAN_BANS_OIDLEN_CLASS_BAN_COUNT \
SNMP_BAN_BANS_OID_BASELEN + 1
#define SNMP_MIB_BAN_BANS_OID_CLASS_BAN_TOTAL \
SNMP_BAN_BANS_OID_BASE, 8
#define SNMP_MIB_BAN_BANS_OIDLEN_CLASS_BAN_TOTAL \
SNMP_BAN_BANS_OID_BASELEN + 1
/* XXX sqlStats MIBs */
/* XXX quotaStats MIBs */
/* XXX geoipStats MIBs */
/* The longest MIB that we support/define. */
#define SNMP_MIB_MAX_OIDLEN 14
/* The index at which the sysUpTime OID appears in our MIBs array. */
#define SNMP_MIB_SYS_UPTIME_IDX 1
/* The index at which the snmpTrapOID OID appears in our MIBs array. */
#define SNMP_MIB_SNMP2_TRAP_OID_IDX 2
struct snmp_mib {
oid_t mib_oid[SNMP_MIB_MAX_OIDLEN];
unsigned int mib_oidlen;
unsigned int db_field;
int mib_enabled;
int notify_only;
const char *mib_name;
const char *instance_name;
unsigned char smi_type;
};
struct snmp_mib *snmp_mib_get_by_idx(unsigned int mib_idx);
struct snmp_mib *snmp_mib_get_by_oid(oid_t *mib_oid, unsigned int mib_oidlen,
int *lacks_instance_id);
int snmp_mib_get_idx(oid_t *mib_oid, unsigned int mib_oidlen,
int *lacks_instance_id);
int snmp_mib_get_nearest_idx(oid_t *mib_oid, unsigned int mib_oidlen);
/* Returns the highest valid MIB index. Why is this a runtime function,
* rather than a compile-time constant? Because of the conditional nature
* of some of the MIBs e.g. pertaining to mod_tls or mod_sftp; those modules
* may not be present/loaded.
*/
int snmp_mib_get_max_idx(void);
/* Resets the counter values in the database, as per RFC recommendation. */
int snmp_mib_reset_counters(void);
/* Initialize the MIB. */
int snmp_mib_init(void);
#endif