Debian Codegraph @

agent/mibgroup/ip-mib/ipAddressTable/ipAddressTable_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 IPADDRESSTABLE_CONSTANTS_H
8 #define IPADDRESSTABLE_CONSTANTS_H
9
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13
14
15 /*
16 * column number definitions for table ipAddressTable
17 */
18 #define IPADDRESSTABLE_OID 1,3,6,1,2,1,4,34
19
20 #define COLUMN_IPADDRESSADDRTYPE 1
21
22 #define COLUMN_IPADDRESSADDR 2
23
24 #define COLUMN_IPADDRESSIFINDEX 3
25 #define COLUMN_IPADDRESSIFINDEX_FLAG (0x1 << 2)
26
27 #define COLUMN_IPADDRESSTYPE 4
28 #define COLUMN_IPADDRESSTYPE_FLAG (0x1 << 3)
29
30 #define COLUMN_IPADDRESSPREFIX 5
31
32 #define COLUMN_IPADDRESSORIGIN 6
33
34 #define COLUMN_IPADDRESSSTATUS 7
35 #define COLUMN_IPADDRESSSTATUS_FLAG (0x1 << 6)
36
37 #define COLUMN_IPADDRESSCREATED 8
38
39 #define COLUMN_IPADDRESSLASTCHANGED 9
40
41 #define COLUMN_IPADDRESSROWSTATUS 10
42 #define COLUMN_IPADDRESSROWSTATUS_FLAG (0x1 << 9)
43
44 #define COLUMN_IPADDRESSSTORAGETYPE 11
45 #define COLUMN_IPADDRESSSTORAGETYPE_FLAG (0x1 << 10)
46
47
48 #define IPADDRESSTABLE_MIN_COL COLUMN_IPADDRESSIFINDEX
49 #define IPADDRESSTABLE_MAX_COL COLUMN_IPADDRESSSTORAGETYPE
50
51 /*
52 * TODO:405:r: Review IPADDRESSTABLE_SETTABLE_COLS macro.
53 * OR together all the writable cols.
54 */
55 #define IPADDRESSTABLE_SETTABLE_COLS (COLUMN_IPADDRESSIFINDEX_FLAG | COLUMN_IPADDRESSTYPE_FLAG | COLUMN_IPADDRESSSTATUS_FLAG | COLUMN_IPADDRESSROWSTATUS_FLAG | COLUMN_IPADDRESSSTORAGETYPE_FLAG)
56 /*
57 * TODO:405:r: Review IPADDRESSTABLE_REQUIRED_COLS macro.
58 * OR together all the required rows for row creation.
59 * default is writable cols w/out defaults.
60 */
61 #define IPADDRESSTABLE_REQUIRED_COLS (COLUMN_IPADDRESSIFINDEX_FLAG | COLUMN_IPADDRESSROWSTATUS_FLAG)
62
63 /*
64 * NOTES on enums
65 * ==============
66 *
67 * Value Mapping
68 * -------------
69 * If the values for your data type don't exactly match the
70 * possible values defined by the mib, you should map them
71 * below. For example, a boolean flag (1/0) is usually represented
72 * as a TruthValue in a MIB, which maps to the values (1/2).
73 *
74 */
75 /*************************************************************************
76 *************************************************************************
77 *
78 * enum definitions for table ipAddressTable
79 *
80 *************************************************************************
81 *************************************************************************/
82
83 /*************************************************************
84 * constants for enums for the MIB node
85 * ipAddressAddrType (InetAddressType / ASN_INTEGER)
86 *
87 * since a Textual Convention may be referenced more than once in a
88 * MIB, protect againt redefinitions of the enum values.
89 */
90 #ifndef INETADDRESSTYPE_ENUMS
91 #define INETADDRESSTYPE_ENUMS
92
93 #define INETADDRESSTYPE_UNKNOWN 0
94 #define INETADDRESSTYPE_IPV4 1
95 #define INETADDRESSTYPE_IPV6 2
96 #define INETADDRESSTYPE_IPV4Z 3
97 #define INETADDRESSTYPE_IPV6Z 4
98 #define INETADDRESSTYPE_DNS 16
99
100 #endif /* INETADDRESSTYPE_ENUMS */
101
102 /*
103 * TODO:140:o: Define your interal representation of ipAddressAddrType enums.
104 * (used for value mapping; see notes at top of file)
105 *
106 * simplistic map of address length to type
107 */
108 #define INTERNAL_IPADDRESSTABLE_IPADDRESSADDRTYPE_IPV4 4
109 #define INTERNAL_IPADDRESSTABLE_IPADDRESSADDRTYPE_IPV6 16
110
111
112 /*************************************************************
113 * constants for enums for the MIB node
114 * ipAddressType (INTEGER / ASN_INTEGER)
115 *
116 * since a Textual Convention may be referenced more than once in a
117 * MIB, protect againt redefinitions of the enum values.
118 */
119 #ifndef IPADDRESSTYPE_ENUMS
120 #define IPADDRESSTYPE_ENUMS
121
122 #define IPADDRESSTYPE_UNICAST 1
123 #define IPADDRESSTYPE_ANYCAST 2
124 #define IPADDRESSTYPE_BROADCAST 3
125
126 #endif /* IPADDRESSTYPE_ENUMS */
127
128
129 /*************************************************************
130 * constants for enums for the MIB node
131 * ipAddressOrigin (IpAddressOriginTC / ASN_INTEGER)
132 *
133 * since a Textual Convention may be referenced more than once in a
134 * MIB, protect againt redefinitions of the enum values.
135 */
136 #ifndef IPADDRESSORIGINTC_ENUMS
137 #define IPADDRESSORIGINTC_ENUMS
138
139 #define IPADDRESSORIGINTC_OTHER 1
140 #define IPADDRESSORIGINTC_MANUAL 2
141 #define IPADDRESSORIGINTC_DHCP 4
142 #define IPADDRESSORIGINTC_LINKLAYER 5
143 #define IPADDRESSORIGINTC_RANDOM 6
144
145 #endif /* IPADDRESSORIGINTC_ENUMS */
146
147
148 /*************************************************************
149 * constants for enums for the MIB node
150 * ipAddressStatus (IpAddressStatusTC / ASN_INTEGER)
151 *
152 * since a Textual Convention may be referenced more than once in a
153 * MIB, protect againt redefinitions of the enum values.
154 */
155 #ifndef IPADDRESSSTATUSTC_ENUMS
156 #define IPADDRESSSTATUSTC_ENUMS
157
158 #define IPADDRESSSTATUSTC_PREFERRED 1
159 #define IPADDRESSSTATUSTC_DEPRECATED 2
160 #define IPADDRESSSTATUSTC_INVALID 3
161 #define IPADDRESSSTATUSTC_INACCESSIBLE 4
162 #define IPADDRESSSTATUSTC_UNKNOWN 5
163 #define IPADDRESSSTATUSTC_TENTATIVE 6
164 #define IPADDRESSSTATUSTC_DUPLICATE 7
165
166 #endif /* IPADDRESSSTATUSTC_ENUMS */
167
168
169 /*************************************************************
170 * constants for enums for the MIB node
171 * ipAddressRowStatus (RowStatus / ASN_INTEGER)
172 *
173 * since a Textual Convention may be referenced more than once in a
174 * MIB, protect againt redefinitions of the enum values.
175 */
176 #ifndef ROWSTATUS_ENUMS
177 #define ROWSTATUS_ENUMS
178
179 #define ROWSTATUS_ACTIVE 1
180 #define ROWSTATUS_NOTINSERVICE 2
181 #define ROWSTATUS_NOTREADY 3
182 #define ROWSTATUS_CREATEANDGO 4
183 #define ROWSTATUS_CREATEANDWAIT 5
184 #define ROWSTATUS_DESTROY 6
185
186 #endif /* ROWSTATUS_ENUMS */
187
188
189 /*************************************************************
190 * constants for enums for the MIB node
191 * ipAddressStorageType (StorageType / ASN_INTEGER)
192 *
193 * since a Textual Convention may be referenced more than once in a
194 * MIB, protect againt redefinitions of the enum values.
195 */
196 #ifndef STORAGETYPE_ENUMS
197 #define STORAGETYPE_ENUMS
198
199 #define STORAGETYPE_OTHER 1
200 #define STORAGETYPE_VOLATILE 2
201 #define STORAGETYPE_NONVOLATILE 3
202 #define STORAGETYPE_PERMANENT 4
203 #define STORAGETYPE_READONLY 5
204
205 #endif /* STORAGETYPE_ENUMS */
206
207
208
209
210 #ifdef __cplusplus
211 }
212 #endif
213 #endif /* IPADDRESSTABLE_OIDS_H */