summaryrefslogtreecommitdiff
path: root/agent/mibgroup/ip-mib/ipAddressTable/ipAddressTable_constants.h
blob: 7e885504d193126345737274a88551d7a8aef485 (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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
/*
 * 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 IPADDRESSTABLE_CONSTANTS_H
#define IPADDRESSTABLE_CONSTANTS_H

#ifdef __cplusplus
extern          "C" {
#endif


    /*
     * column number definitions for table ipAddressTable 
     */
#define IPADDRESSTABLE_OID              1,3,6,1,2,1,4,34

#define COLUMN_IPADDRESSADDRTYPE         1

#define COLUMN_IPADDRESSADDR         2

#define COLUMN_IPADDRESSIFINDEX         3
#define COLUMN_IPADDRESSIFINDEX_FLAG    (0x1 << 2)

#define COLUMN_IPADDRESSTYPE         4
#define COLUMN_IPADDRESSTYPE_FLAG    (0x1 << 3)

#define COLUMN_IPADDRESSPREFIX         5

#define COLUMN_IPADDRESSORIGIN         6

#define COLUMN_IPADDRESSSTATUS         7
#define COLUMN_IPADDRESSSTATUS_FLAG    (0x1 << 6)

#define COLUMN_IPADDRESSCREATED         8

#define COLUMN_IPADDRESSLASTCHANGED         9

#define COLUMN_IPADDRESSROWSTATUS         10
#define COLUMN_IPADDRESSROWSTATUS_FLAG    (0x1 << 9)

#define COLUMN_IPADDRESSSTORAGETYPE         11
#define COLUMN_IPADDRESSSTORAGETYPE_FLAG    (0x1 << 10)


#define IPADDRESSTABLE_MIN_COL   COLUMN_IPADDRESSIFINDEX
#define IPADDRESSTABLE_MAX_COL   COLUMN_IPADDRESSSTORAGETYPE

    /*
     * TODO:405:r: Review IPADDRESSTABLE_SETTABLE_COLS macro.
     * OR together all the writable cols.
     */
#define IPADDRESSTABLE_SETTABLE_COLS (COLUMN_IPADDRESSIFINDEX_FLAG | COLUMN_IPADDRESSTYPE_FLAG | COLUMN_IPADDRESSSTATUS_FLAG | COLUMN_IPADDRESSROWSTATUS_FLAG | COLUMN_IPADDRESSSTORAGETYPE_FLAG)
    /*
     * TODO:405:r: Review IPADDRESSTABLE_REQUIRED_COLS macro.
     * OR together all the required rows for row creation.
     * default is writable cols w/out defaults.
     */
#define IPADDRESSTABLE_REQUIRED_COLS (COLUMN_IPADDRESSIFINDEX_FLAG | COLUMN_IPADDRESSROWSTATUS_FLAG)

    /*
     * 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 ipAddressTable
 *
 *************************************************************************
 *************************************************************************/

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

#define INETADDRESSTYPE_UNKNOWN  0
#define INETADDRESSTYPE_IPV4  1
#define INETADDRESSTYPE_IPV6  2
#define INETADDRESSTYPE_IPV4Z  3
#define INETADDRESSTYPE_IPV6Z  4
#define INETADDRESSTYPE_DNS  16

#endif                          /* INETADDRESSTYPE_ENUMS */

    /*
     * TODO:140:o: Define your interal representation of ipAddressAddrType enums.
     * (used for value mapping; see notes at top of file)
     *
     * simplistic map of address length to type
     */
#define INTERNAL_IPADDRESSTABLE_IPADDRESSADDRTYPE_IPV4  4
#define INTERNAL_IPADDRESSTABLE_IPADDRESSADDRTYPE_IPV6  16


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

#define IPADDRESSTYPE_UNICAST  1
#define IPADDRESSTYPE_ANYCAST  2
#define IPADDRESSTYPE_BROADCAST  3

#endif                          /* IPADDRESSTYPE_ENUMS */


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

#define IPADDRESSORIGINTC_OTHER  1
#define IPADDRESSORIGINTC_MANUAL  2
#define IPADDRESSORIGINTC_DHCP  4
#define IPADDRESSORIGINTC_LINKLAYER  5
#define IPADDRESSORIGINTC_RANDOM  6

#endif                          /* IPADDRESSORIGINTC_ENUMS */


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

#define IPADDRESSSTATUSTC_PREFERRED  1
#define IPADDRESSSTATUSTC_DEPRECATED  2
#define IPADDRESSSTATUSTC_INVALID  3
#define IPADDRESSSTATUSTC_INACCESSIBLE  4
#define IPADDRESSSTATUSTC_UNKNOWN  5
#define IPADDRESSSTATUSTC_TENTATIVE  6
#define IPADDRESSSTATUSTC_DUPLICATE  7

#endif                          /* IPADDRESSSTATUSTC_ENUMS */


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

#define ROWSTATUS_ACTIVE  1
#define ROWSTATUS_NOTINSERVICE  2
#define ROWSTATUS_NOTREADY  3
#define ROWSTATUS_CREATEANDGO  4
#define ROWSTATUS_CREATEANDWAIT  5
#define ROWSTATUS_DESTROY  6

#endif                          /* ROWSTATUS_ENUMS */


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

#define STORAGETYPE_OTHER  1
#define STORAGETYPE_VOLATILE  2
#define STORAGETYPE_NONVOLATILE  3
#define STORAGETYPE_PERMANENT  4
#define STORAGETYPE_READONLY  5

#endif                          /* STORAGETYPE_ENUMS */




#ifdef __cplusplus
}
#endif
#endif                          /* IPADDRESSTABLE_OIDS_H */