| 1 |
/* |
| 2 |
* MIB group interface - ipfwacc.h |
| 3 |
* IP accounting through firewall rules |
| 4 |
*/ |
| 5 |
#ifndef _MIBGROUP_IPFWACC_H |
| 6 |
#define _MIBGROUP_IPFWACC_H |
| 7 |
|
| 8 |
/* |
| 9 |
* we use header_simple_table from the util_funcs module |
| 10 |
*/ |
| 11 |
|
| 12 |
config_require(util_funcs/header_simple_table); |
| 13 |
|
| 14 |
/* |
| 15 |
* add the mib we implement to the list of default mibs to load |
| 16 |
*/ |
| 17 |
config_add_mib(UCD-IPFWACC-MIB); |
| 18 |
|
| 19 |
/* |
| 20 |
* Magic number definitions: |
| 21 |
*/ |
| 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 |
| 31 |
#define IPFWACCDIR 10 |
| 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 |
| 48 |
/* |
| 49 |
* function definitions |
| 50 |
*/ |
| 51 |
extern void init_ipfwacc(void); |
| 52 |
extern FindVarMethod var_ipfwacc; |
| 53 |
|
| 54 |
#endif /* _MIBGROUP_IPFWACC_H */ |