2 * MIB group interface - ipfwacc.h
3 * IP accounting through firewall rules
5 #ifndef _MIBGROUP_IPFWACC_H
6 #define _MIBGROUP_IPFWACC_H
9 * we use checkmib from the util_funcs module
12 config_require(util_funcs)
15 * add the mib we implement to the list of default mibs to load
17 config_add_mib(UCD-IPFWACC-MIB)
20 * Magic number definitions:
22 #define IPFWACCINDEX 1
23 #define IPFWACCSRCADDR 2
24 #define IPFWACCSRCNM 3
25 #define IPFWACCDSTADDR 4
26 #define IPFWACCDSTNM 5
27 #define IPFWACCVIANAME 6
28 #define IPFWACCVIAADDR 7
29 #define IPFWACCPROTO 8
30 #define IPFWACCBIDIR 9
32 #define IPFWACCBYTES 11
33 #define IPFWACCPACKETS 12
34 #define IPFWACCNSRCPRTS 13
35 #define IPFWACCNDSTPRTS 14
36 #define IPFWACCSRCISRNG 15
37 #define IPFWACCDSTISRNG 16
38 #define IPFWACCPORT1 17
39 #define IPFWACCPORT2 18
40 #define IPFWACCPORT3 19
41 #define IPFWACCPORT4 20
42 #define IPFWACCPORT5 21
43 #define IPFWACCPORT6 22
44 #define IPFWACCPORT7 23
45 #define IPFWACCPORT8 24
46 #define IPFWACCPORT9 25
47 #define IPFWACCPORT10 26
49 * function definitions
51 extern void init_ipfwacc(void);
52 extern FindVarMethod var_ipfwacc;
54 #endif /* _MIBGROUP_IPFWACC_H */