summaryrefslogtreecommitdiff
path: root/agent/mibgroup/misc/ipfwacc.h
blob: 639c73937a6ac7a9bf411236f73d47f003f5b610 (plain)
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
/*
 *  MIB group interface - ipfwacc.h
 *  IP accounting through firewall rules
 */
#ifndef _MIBGROUP_IPFWACC_H
#define _MIBGROUP_IPFWACC_H

/*
 * we use header_simple_table from the util_funcs module
 */

config_require(util_funcs/header_simple_table)

    /*
     * 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 */