Debian Codegraph @

agent/mibgroup/ip-mib/inetNetToMediaTable/inetNetToMediaTable_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 INETNETTOMEDIATABLE_CONSTANTS_H
8 #define INETNETTOMEDIATABLE_CONSTANTS_H
9
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13
14
15 /*
16 * column number definitions for table inetNetToMediaTable
17 */
18 #define INETNETTOMEDIATABLE_OID 1,3,6,1,2,1,4,35
19
20 #define COLUMN_INETNETTOMEDIAIFINDEX 1
21
22 #define COLUMN_INETNETTOMEDIANETADDRESSTYPE 2
23
24 #define COLUMN_INETNETTOMEDIANETADDRESS 3
25
26 #define COLUMN_INETNETTOMEDIAPHYSADDRESS 4
27 #define COLUMN_INETNETTOMEDIAPHYSADDRESS_FLAG (0x1 << 3)
28
29 #define COLUMN_INETNETTOMEDIALASTUPDATED 5
30
31 #define COLUMN_INETNETTOMEDIATYPE 6
32 #define COLUMN_INETNETTOMEDIATYPE_FLAG (0x1 << 5)
33
34 #define COLUMN_INETNETTOMEDIASTATE 7
35
36 #define COLUMN_INETNETTOMEDIAROWSTATUS 8
37 #define COLUMN_INETNETTOMEDIAROWSTATUS_FLAG (0x1 << 7)
38
39
40 #define INETNETTOMEDIATABLE_MIN_COL COLUMN_INETNETTOMEDIAPHYSADDRESS
41 #define INETNETTOMEDIATABLE_MAX_COL COLUMN_INETNETTOMEDIAROWSTATUS
42
43
44 /*
45 * TODO:405:r: Review INETNETTOMEDIATABLE_SETTABLE_COLS macro.
46 * OR together all the writable cols.
47 */
48 #define INETNETTOMEDIATABLE_SETTABLE_COLS (COLUMN_INETNETTOMEDIAPHYSADDRESS_FLAG | COLUMN_INETNETTOMEDIATYPE_FLAG | COLUMN_INETNETTOMEDIAROWSTATUS_FLAG)
49 /*
50 * TODO:405:r: Review INETNETTOMEDIATABLE_REQUIRED_COLS macro.
51 * OR together all the required rows for row creation.
52 * default is writable cols w/out defaults.
53 */
54 #define INETNETTOMEDIATABLE_REQUIRED_COLS (COLUMN_INETNETTOMEDIAPHYSADDRESS_FLAG | COLUMN_INETNETTOMEDIAROWSTATUS_FLAG)
55
56 /*
57 * NOTES on enums
58 * ==============
59 *
60 * Value Mapping
61 * -------------
62 * If the values for your data type don't exactly match the
63 * possible values defined by the mib, you should map them
64 * below. For example, a boolean flag (1/0) is usually represented
65 * as a TruthValue in a MIB, which maps to the values (1/2).
66 *
67 */
68 /*************************************************************************
69 *************************************************************************
70 *
71 * enum definitions for table inetNetToMediaTable
72 *
73 *************************************************************************
74 *************************************************************************/
75
76 /*************************************************************
77 * constants for enums for the MIB node
78 * inetNetToMediaNetAddressType (InetAddressType / ASN_INTEGER)
79 *
80 * since a Textual Convention may be referenced more than once in a
81 * MIB, protect againt redefinitions of the enum values.
82 */
83 #ifndef INETADDRESSTYPE_ENUMS
84 #define INETADDRESSTYPE_ENUMS
85
86 #define INETADDRESSTYPE_UNKNOWN 0
87 #define INETADDRESSTYPE_IPV4 1
88 #define INETADDRESSTYPE_IPV6 2
89 #define INETADDRESSTYPE_IPV4Z 3
90 #define INETADDRESSTYPE_IPV6Z 4
91 #define INETADDRESSTYPE_DNS 16
92
93 #endif /* INETADDRESSTYPE_ENUMS */
94
95
96 /*************************************************************
97 * constants for enums for the MIB node
98 * inetNetToMediaType (INTEGER / ASN_INTEGER)
99 *
100 * since a Textual Convention may be referenced more than once in a
101 * MIB, protect againt redefinitions of the enum values.
102 */
103 #ifndef INETNETTOMEDIATYPE_ENUMS
104 #define INETNETTOMEDIATYPE_ENUMS
105
106 #define INETNETTOMEDIATYPE_OTHER 1
107 #define INETNETTOMEDIATYPE_INVALID 2
108 #define INETNETTOMEDIATYPE_DYNAMIC 3
109 #define INETNETTOMEDIATYPE_STATIC 4
110 #define INETNETTOMEDIATYPE_LOCAL 5
111
112 #endif /* INETNETTOMEDIATYPE_ENUMS */
113
114
115 /*************************************************************
116 * constants for enums for the MIB node
117 * inetNetToMediaState (INTEGER / ASN_INTEGER)
118 *
119 * since a Textual Convention may be referenced more than once in a
120 * MIB, protect againt redefinitions of the enum values.
121 */
122 #ifndef INETNETTOMEDIASTATE_ENUMS
123 #define INETNETTOMEDIASTATE_ENUMS
124
125 #define INETNETTOMEDIASTATE_REACHABLE 1
126 #define INETNETTOMEDIASTATE_STALE 2
127 #define INETNETTOMEDIASTATE_DELAY 3
128 #define INETNETTOMEDIASTATE_PROBE 4
129 #define INETNETTOMEDIASTATE_INVALID 5
130 #define INETNETTOMEDIASTATE_UNKNOWN 6
131 #define INETNETTOMEDIASTATE_INCOMPLETE 7
132
133 #endif /* INETNETTOMEDIASTATE_ENUMS */
134
135
136 /*************************************************************
137 * constants for enums for the MIB node
138 * inetNetToMediaRowStatus (RowStatus / ASN_INTEGER)
139 *
140 * since a Textual Convention may be referenced more than once in a
141 * MIB, protect againt redefinitions of the enum values.
142 */
143 #ifndef ROWSTATUS_ENUMS
144 #define ROWSTATUS_ENUMS
145
146 #define ROWSTATUS_ACTIVE 1
147 #define ROWSTATUS_NOTINSERVICE 2
148 #define ROWSTATUS_NOTREADY 3
149 #define ROWSTATUS_CREATEANDGO 4
150 #define ROWSTATUS_CREATEANDWAIT 5
151 #define ROWSTATUS_DESTROY 6
152
153 #endif /* ROWSTATUS_ENUMS */
154
155
156
157
158 #ifdef __cplusplus
159 }
160 #endif
161 #endif /* INETNETTOMEDIATABLE_OIDS_H */