summaryrefslogtreecommitdiff
path: root/agent/mibgroup/if-mib/ifXTable/ifXTable_constants.h
blob: 67e1996cb3ec5fdb936ff14aa83d768b62a12902 (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
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
/*
 * Note: this file originally auto-generated by mib2c using
 *  : generic-table-constants.m2c,v 1.5 2005/07/15 22:41:16 rstory Exp $
 *
 * $Id$
 */
#ifndef IFXTABLE_CONSTANTS_H
#define IFXTABLE_CONSTANTS_H

#ifdef __cplusplus
extern          "C" {
#endif


    /*
     * column number definitions for table ifXTable 
     */
#define IFXTABLE_OID              1,3,6,1,2,1,31,1,1

#define COLUMN_IFNAME         1

#define COLUMN_IFINMULTICASTPKTS         2

#define COLUMN_IFINBROADCASTPKTS         3

#define COLUMN_IFOUTMULTICASTPKTS         4

#define COLUMN_IFOUTBROADCASTPKTS         5

#define COLUMN_IFHCINOCTETS         6

#define COLUMN_IFHCINUCASTPKTS         7

#define COLUMN_IFHCINMULTICASTPKTS         8

#define COLUMN_IFHCINBROADCASTPKTS         9

#define COLUMN_IFHCOUTOCTETS         10

#define COLUMN_IFHCOUTUCASTPKTS         11

#define COLUMN_IFHCOUTMULTICASTPKTS         12

#define COLUMN_IFHCOUTBROADCASTPKTS         13

#define COLUMN_IFLINKUPDOWNTRAPENABLE         14
#define COLUMN_IFLINKUPDOWNTRAPENABLE_FLAG    (0x1 << 13)

#define COLUMN_IFHIGHSPEED         15

#define COLUMN_IFPROMISCUOUSMODE         16
#define COLUMN_IFPROMISCUOUSMODE_FLAG    (0x1 << 15)

#define COLUMN_IFCONNECTORPRESENT         17

#define COLUMN_IFALIAS         18
#define COLUMN_IFALIAS_FLAG    (0x1 << 17)

#define COLUMN_IFCOUNTERDISCONTINUITYTIME         19


#define IFXTABLE_MIN_COL   COLUMN_IFNAME
#define IFXTABLE_MAX_COL   COLUMN_IFCOUNTERDISCONTINUITYTIME


    /*
     * TODO:405:r: Review IFXTABLE_SETTABLE_COLS macro.
     * OR together all the writable cols.
     */
#ifndef NETSNMP_NO_WRITE_SUPPORT
#define IFXTABLE_SETTABLE_COLS (COLUMN_IFLINKUPDOWNTRAPENABLE_FLAG | COLUMN_IFALIAS_FLAG)
#else /* !NETSNMP_NO_WRITE_SUPPORT */
#define IFXTABLE_SETTABLE_COLS 0
#endif /* !NETSNMP_NO_WRITE_SUPPORT */ 
    /*
     * NOTES on enums
     * ==============
     *
     * Value Mapping
     * -------------
     * If the values for your data type don't exactly match the
     * possible values defined by the mib, you should map them
     * below. For example, a boolean flag (1/0) is usually represented
     * as a TruthValue in a MIB, which maps to the values (1/2).
     *
     */
/*************************************************************************
 *************************************************************************
 *
 * enum definitions for table ifXTable
 *
 *************************************************************************
 *************************************************************************/

/*************************************************************
 * constants for enums for the MIB node
 * ifLinkUpDownTrapEnable (INTEGER / ASN_INTEGER)
 *
 * since a Textual Convention may be referenced more than once in a
 * MIB, protect againt redefinitions of the enum values.
 */
#ifndef IFLINKUPDOWNTRAPENABLE_ENUMS
#define IFLINKUPDOWNTRAPENABLE_ENUMS

#define IFLINKUPDOWNTRAPENABLE_ENABLED  1
#define IFLINKUPDOWNTRAPENABLE_DISABLED  2

#endif                          /* IFLINKUPDOWNTRAPENABLE_ENUMS */


/*************************************************************
 * constants for enums for the MIB node
 * ifPromiscuousMode (TruthValue / ASN_INTEGER)
 *
 * since a Textual Convention may be referenced more than once in a
 * MIB, protect againt redefinitions of the enum values.
 */
#ifndef TRUTHVALUE_ENUMS
#define TRUTHVALUE_ENUMS

#define TRUTHVALUE_TRUE  1
#define TRUTHVALUE_FALSE  2

#endif                          /* TRUTHVALUE_ENUMS */


/*************************************************************
 * constants for enums for the MIB node
 * ifConnectorPresent (TruthValue / ASN_INTEGER)
 *
 * since a Textual Convention may be referenced more than once in a
 * MIB, protect againt redefinitions of the enum values.
 */
#ifndef TRUTHVALUE_ENUMS
#define TRUTHVALUE_ENUMS

#define TRUTHVALUE_TRUE  1
#define TRUTHVALUE_FALSE  2

#endif                          /* TRUTHVALUE_ENUMS */




#ifdef __cplusplus
}
#endif
#endif                          /* IFXTABLE_OIDS_H */