Debian Codegraph @

agent/mibgroup/ip-forward-mib/inetCidrRouteTable/inetCidrRouteTable_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 INETCIDRROUTETABLE_CONSTANTS_H
8 #define INETCIDRROUTETABLE_CONSTANTS_H
9
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13
14
15 /*
16 * column number definitions for table inetCidrRouteTable
17 */
18 #define INETCIDRROUTENUMBER_OID 1,3,6,1,2,1,4,24,6,0
19 #define INETCIDRROUTETABLE_OID 1,3,6,1,2,1,4,24,7
20
21 #define COLUMN_INETCIDRROUTEDESTTYPE 1
22
23 #define COLUMN_INETCIDRROUTEDEST 2
24
25 #define COLUMN_INETCIDRROUTEPFXLEN 3
26
27 #define COLUMN_INETCIDRROUTEPOLICY 4
28
29 #define COLUMN_INETCIDRROUTENEXTHOPTYPE 5
30
31 #define COLUMN_INETCIDRROUTENEXTHOP 6
32
33 #define COLUMN_INETCIDRROUTEIFINDEX 7
34 #define COLUMN_INETCIDRROUTEIFINDEX_FLAG (0x1 << 6)
35
36 #define COLUMN_INETCIDRROUTETYPE 8
37 #define COLUMN_INETCIDRROUTETYPE_FLAG (0x1 << 7)
38
39 #define COLUMN_INETCIDRROUTEPROTO 9
40
41 #define COLUMN_INETCIDRROUTEAGE 10
42
43 #define COLUMN_INETCIDRROUTENEXTHOPAS 11
44 #define COLUMN_INETCIDRROUTENEXTHOPAS_FLAG (0x1 << 10)
45
46 #define COLUMN_INETCIDRROUTEMETRIC1 12
47 #define COLUMN_INETCIDRROUTEMETRIC1_FLAG (0x1 << 11)
48
49 #define COLUMN_INETCIDRROUTEMETRIC2 13
50 #define COLUMN_INETCIDRROUTEMETRIC2_FLAG (0x1 << 12)
51
52 #define COLUMN_INETCIDRROUTEMETRIC3 14
53 #define COLUMN_INETCIDRROUTEMETRIC3_FLAG (0x1 << 13)
54
55 #define COLUMN_INETCIDRROUTEMETRIC4 15
56 #define COLUMN_INETCIDRROUTEMETRIC4_FLAG (0x1 << 14)
57
58 #define COLUMN_INETCIDRROUTEMETRIC5 16
59 #define COLUMN_INETCIDRROUTEMETRIC5_FLAG (0x1 << 15)
60
61 #define COLUMN_INETCIDRROUTESTATUS 17
62 #define COLUMN_INETCIDRROUTESTATUS_FLAG (0x1 << 16)
63
64
65 #define INETCIDRROUTETABLE_MIN_COL COLUMN_INETCIDRROUTEIFINDEX
66 #define INETCIDRROUTETABLE_MAX_COL COLUMN_INETCIDRROUTESTATUS
67
68
69 /*
70 * TODO:405:r: Review INETCIDRROUTETABLE_SETTABLE_COLS macro.
71 * OR together all the writable cols.
72 */
73 #define INETCIDRROUTETABLE_SETTABLE_COLS (COLUMN_INETCIDRROUTEIFINDEX_FLAG | COLUMN_INETCIDRROUTETYPE_FLAG | COLUMN_INETCIDRROUTENEXTHOPAS_FLAG | COLUMN_INETCIDRROUTEMETRIC1_FLAG | COLUMN_INETCIDRROUTEMETRIC2_FLAG | COLUMN_INETCIDRROUTEMETRIC3_FLAG | COLUMN_INETCIDRROUTEMETRIC4_FLAG | COLUMN_INETCIDRROUTEMETRIC5_FLAG | COLUMN_INETCIDRROUTESTATUS_FLAG)
74 /*
75 * TODO:405:r: Review INETCIDRROUTETABLE_REQUIRED_COLS macro.
76 * OR together all the required rows for row creation.
77 * default is writable cols w/out defaults.
78 */
79 #define INETCIDRROUTETABLE_REQUIRED_COLS (COLUMN_INETCIDRROUTEIFINDEX_FLAG | COLUMN_INETCIDRROUTETYPE_FLAG | COLUMN_INETCIDRROUTESTATUS_FLAG)
80
81 /*
82 * NOTES on enums
83 * ==============
84 *
85 * Value Mapping
86 * -------------
87 * If the values for your data type don't exactly match the
88 * possible values defined by the mib, you should map them
89 * below. For example, a boolean flag (1/0) is usually represented
90 * as a TruthValue in a MIB, which maps to the values (1/2).
91 *
92 */
93 /*************************************************************************
94 *************************************************************************
95 *
96 * enum definitions for table inetCidrRouteTable
97 *
98 *************************************************************************
99 *************************************************************************/
100
101 /*************************************************************
102 * constants for enums for the MIB node
103 * inetCidrRouteDestType (InetAddressType / ASN_INTEGER)
104 *
105 * since a Textual Convention may be referenced more than once in a
106 * MIB, protect againt redefinitions of the enum values.
107 */
108 #ifndef INETADDRESSTYPE_ENUMS
109 #define INETADDRESSTYPE_ENUMS
110
111 #define INETADDRESSTYPE_UNKNOWN 0
112 #define INETADDRESSTYPE_IPV4 1
113 #define INETADDRESSTYPE_IPV6 2
114 #define INETADDRESSTYPE_IPV4Z 3
115 #define INETADDRESSTYPE_IPV6Z 4
116 #define INETADDRESSTYPE_DNS 16
117
118 #endif /* INETADDRESSTYPE_ENUMS */
119
120
121 /*************************************************************
122 * constants for enums for the MIB node
123 * inetCidrRouteNextHopType (InetAddressType / ASN_INTEGER)
124 *
125 * since a Textual Convention may be referenced more than once in a
126 * MIB, protect againt redefinitions of the enum values.
127 */
128 #ifndef INETADDRESSTYPE_ENUMS
129 #define INETADDRESSTYPE_ENUMS
130
131 #define INETADDRESSTYPE_UNKNOWN 0
132 #define INETADDRESSTYPE_IPV4 1
133 #define INETADDRESSTYPE_IPV6 2
134 #define INETADDRESSTYPE_IPV4Z 3
135 #define INETADDRESSTYPE_IPV6Z 4
136 #define INETADDRESSTYPE_DNS 16
137
138 #endif /* INETADDRESSTYPE_ENUMS */
139
140
141 /*************************************************************
142 * constants for enums for the MIB node
143 * inetCidrRouteType (INTEGER / ASN_INTEGER)
144 *
145 * since a Textual Convention may be referenced more than once in a
146 * MIB, protect againt redefinitions of the enum values.
147 */
148 #ifndef INETCIDRROUTETYPE_ENUMS
149 #define INETCIDRROUTETYPE_ENUMS
150
151 #define INETCIDRROUTETYPE_OTHER 1
152 #define INETCIDRROUTETYPE_REJECT 2
153 #define INETCIDRROUTETYPE_LOCAL 3
154 #define INETCIDRROUTETYPE_REMOTE 4
155 #define INETCIDRROUTETYPE_BLACKHOLE 5
156
157 #endif /* INETCIDRROUTETYPE_ENUMS */
158
159
160 /*************************************************************
161 * constants for enums for the MIB node
162 * inetCidrRouteProto (IANAipRouteProtocol / ASN_INTEGER)
163 *
164 * since a Textual Convention may be referenced more than once in a
165 * MIB, protect againt redefinitions of the enum values.
166 */
167 #ifndef IANAIPROUTEPROTOCOL_ENUMS
168 #define IANAIPROUTEPROTOCOL_ENUMS
169
170 #define IANAIPROUTEPROTOCOL_OTHER 1
171 #define IANAIPROUTEPROTOCOL_LOCAL 2
172 #define IANAIPROUTEPROTOCOL_NETMGMT 3
173 #define IANAIPROUTEPROTOCOL_ICMP 4
174 #define IANAIPROUTEPROTOCOL_EGP 5
175 #define IANAIPROUTEPROTOCOL_GGP 6
176 #define IANAIPROUTEPROTOCOL_HELLO 7
177 #define IANAIPROUTEPROTOCOL_RIP 8
178 #define IANAIPROUTEPROTOCOL_ISIS 9
179 #define IANAIPROUTEPROTOCOL_ESIS 10
180 #define IANAIPROUTEPROTOCOL_CISCOIGRP 11
181 #define IANAIPROUTEPROTOCOL_BBNSPFIGP 12
182 #define IANAIPROUTEPROTOCOL_OSPF 13
183 #define IANAIPROUTEPROTOCOL_BGP 14
184 #define IANAIPROUTEPROTOCOL_IDPR 15
185 #define IANAIPROUTEPROTOCOL_CISCOEIGRP 16
186 #define IANAIPROUTEPROTOCOL_DVMRP 17
187
188 #endif /* IANAIPROUTEPROTOCOL_ENUMS */
189
190
191 /*************************************************************
192 * constants for enums for the MIB node
193 * inetCidrRouteStatus (RowStatus / ASN_INTEGER)
194 *
195 * since a Textual Convention may be referenced more than once in a
196 * MIB, protect againt redefinitions of the enum values.
197 */
198 #ifndef ROWSTATUS_ENUMS
199 #define ROWSTATUS_ENUMS
200
201 #define ROWSTATUS_ACTIVE 1
202 #define ROWSTATUS_NOTINSERVICE 2
203 #define ROWSTATUS_NOTREADY 3
204 #define ROWSTATUS_CREATEANDGO 4
205 #define ROWSTATUS_CREATEANDWAIT 5
206 #define ROWSTATUS_DESTROY 6
207
208 #endif /* ROWSTATUS_ENUMS */
209
210
211
212
213 #ifdef __cplusplus
214 }
215 #endif
216 #endif /* INETCIDRROUTETABLE_OIDS_H */