diff options
Diffstat (limited to 'agent/mibgroup/misc/ipfwacc.h')
-rw-r--r-- | agent/mibgroup/misc/ipfwacc.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/agent/mibgroup/misc/ipfwacc.h b/agent/mibgroup/misc/ipfwacc.h new file mode 100644 index 0000000..d9b6e61 --- /dev/null +++ b/agent/mibgroup/misc/ipfwacc.h @@ -0,0 +1,54 @@ +/* + * MIB group interface - ipfwacc.h + * IP accounting through firewall rules + */ +#ifndef _MIBGROUP_IPFWACC_H +#define _MIBGROUP_IPFWACC_H + +/* + * we use checkmib from the util_funcs module + */ + +config_require(util_funcs) + + /* + * add the mib we implement to the list of default mibs to load + */ +config_add_mib(UCD-IPFWACC-MIB) + + /* + * Magic number definitions: + */ +#define IPFWACCINDEX 1 +#define IPFWACCSRCADDR 2 +#define IPFWACCSRCNM 3 +#define IPFWACCDSTADDR 4 +#define IPFWACCDSTNM 5 +#define IPFWACCVIANAME 6 +#define IPFWACCVIAADDR 7 +#define IPFWACCPROTO 8 +#define IPFWACCBIDIR 9 +#define IPFWACCDIR 10 +#define IPFWACCBYTES 11 +#define IPFWACCPACKETS 12 +#define IPFWACCNSRCPRTS 13 +#define IPFWACCNDSTPRTS 14 +#define IPFWACCSRCISRNG 15 +#define IPFWACCDSTISRNG 16 +#define IPFWACCPORT1 17 +#define IPFWACCPORT2 18 +#define IPFWACCPORT3 19 +#define IPFWACCPORT4 20 +#define IPFWACCPORT5 21 +#define IPFWACCPORT6 22 +#define IPFWACCPORT7 23 +#define IPFWACCPORT8 24 +#define IPFWACCPORT9 25 +#define IPFWACCPORT10 26 + /* + * function definitions + */ + extern void init_ipfwacc(void); + extern FindVarMethod var_ipfwacc; + +#endif /* _MIBGROUP_IPFWACC_H */ |