Debian Codegraph @

agent/mibgroup/if-mib/ifXTable/ifXTable_constants.h

raw
1 /*
2 * Note: this file originally auto-generated by mib2c using
3 * : generic-table-constants.m2c,v 1.5 2005/07/15 22:41:16 rstory Exp $
4 *
5 * $Id$
6 */
7 #ifndef IFXTABLE_CONSTANTS_H
8 #define IFXTABLE_CONSTANTS_H
9
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13
14
15 /*
16 * column number definitions for table ifXTable
17 */
18 #define IFXTABLE_OID 1,3,6,1,2,1,31,1,1
19
20 #define COLUMN_IFNAME 1
21
22 #define COLUMN_IFINMULTICASTPKTS 2
23
24 #define COLUMN_IFINBROADCASTPKTS 3
25
26 #define COLUMN_IFOUTMULTICASTPKTS 4
27
28 #define COLUMN_IFOUTBROADCASTPKTS 5
29
30 #define COLUMN_IFHCINOCTETS 6
31
32 #define COLUMN_IFHCINUCASTPKTS 7
33
34 #define COLUMN_IFHCINMULTICASTPKTS 8
35
36 #define COLUMN_IFHCINBROADCASTPKTS 9
37
38 #define COLUMN_IFHCOUTOCTETS 10
39
40 #define COLUMN_IFHCOUTUCASTPKTS 11
41
42 #define COLUMN_IFHCOUTMULTICASTPKTS 12
43
44 #define COLUMN_IFHCOUTBROADCASTPKTS 13
45
46 #define COLUMN_IFLINKUPDOWNTRAPENABLE 14
47 #define COLUMN_IFLINKUPDOWNTRAPENABLE_FLAG (0x1 << 13)
48
49 #define COLUMN_IFHIGHSPEED 15
50
51 #define COLUMN_IFPROMISCUOUSMODE 16
52 #define COLUMN_IFPROMISCUOUSMODE_FLAG (0x1 << 15)
53
54 #define COLUMN_IFCONNECTORPRESENT 17
55
56 #define COLUMN_IFALIAS 18
57 #define COLUMN_IFALIAS_FLAG (0x1 << 17)
58
59 #define COLUMN_IFCOUNTERDISCONTINUITYTIME 19
60
61
62 #define IFXTABLE_MIN_COL COLUMN_IFNAME
63 #define IFXTABLE_MAX_COL COLUMN_IFCOUNTERDISCONTINUITYTIME
64
65
66 /*
67 * TODO:405:r: Review IFXTABLE_SETTABLE_COLS macro.
68 * OR together all the writable cols.
69 */
70 #ifndef NETSNMP_NO_WRITE_SUPPORT
71 #define IFXTABLE_SETTABLE_COLS (COLUMN_IFLINKUPDOWNTRAPENABLE_FLAG | COLUMN_IFALIAS_FLAG)
72 #else /* !NETSNMP_NO_WRITE_SUPPORT */
73 #define IFXTABLE_SETTABLE_COLS 0
74 #endif /* !NETSNMP_NO_WRITE_SUPPORT */
75 /*
76 * NOTES on enums
77 * ==============
78 *
79 * Value Mapping
80 * -------------
81 * If the values for your data type don't exactly match the
82 * possible values defined by the mib, you should map them
83 * below. For example, a boolean flag (1/0) is usually represented
84 * as a TruthValue in a MIB, which maps to the values (1/2).
85 *
86 */
87 /*************************************************************************
88 *************************************************************************
89 *
90 * enum definitions for table ifXTable
91 *
92 *************************************************************************
93 *************************************************************************/
94
95 /*************************************************************
96 * constants for enums for the MIB node
97 * ifLinkUpDownTrapEnable (INTEGER / ASN_INTEGER)
98 *
99 * since a Textual Convention may be referenced more than once in a
100 * MIB, protect againt redefinitions of the enum values.
101 */
102 #ifndef IFLINKUPDOWNTRAPENABLE_ENUMS
103 #define IFLINKUPDOWNTRAPENABLE_ENUMS
104
105 #define IFLINKUPDOWNTRAPENABLE_ENABLED 1
106 #define IFLINKUPDOWNTRAPENABLE_DISABLED 2
107
108 #endif /* IFLINKUPDOWNTRAPENABLE_ENUMS */
109
110
111 /*************************************************************
112 * constants for enums for the MIB node
113 * ifPromiscuousMode (TruthValue / ASN_INTEGER)
114 *
115 * since a Textual Convention may be referenced more than once in a
116 * MIB, protect againt redefinitions of the enum values.
117 */
118 #ifndef TRUTHVALUE_ENUMS
119 #define TRUTHVALUE_ENUMS
120
121 #define TRUTHVALUE_TRUE 1
122 #define TRUTHVALUE_FALSE 2
123
124 #endif /* TRUTHVALUE_ENUMS */
125
126
127 /*************************************************************
128 * constants for enums for the MIB node
129 * ifConnectorPresent (TruthValue / ASN_INTEGER)
130 *
131 * since a Textual Convention may be referenced more than once in a
132 * MIB, protect againt redefinitions of the enum values.
133 */
134 #ifndef TRUTHVALUE_ENUMS
135 #define TRUTHVALUE_ENUMS
136
137 #define TRUTHVALUE_TRUE 1
138 #define TRUTHVALUE_FALSE 2
139
140 #endif /* TRUTHVALUE_ENUMS */
141
142
143
144
145 #ifdef __cplusplus
146 }
147 #endif
148 #endif /* IFXTABLE_OIDS_H */