| 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 IPV4INTERFACETABLE_CONSTANTS_H |
| 8 |
#define IPV4INTERFACETABLE_CONSTANTS_H |
| 9 |
|
| 10 |
#ifdef __cplusplus |
| 11 |
extern "C" { |
| 12 |
#endif |
| 13 |
|
| 14 |
|
| 15 |
/* |
| 16 |
* column number definitions for table ipv4InterfaceTable |
| 17 |
*/ |
| 18 |
#define IPV4INTERFACETABLE_OID 1,3,6,1,2,1,4,28 |
| 19 |
#define IPV4INTERFACETABLELASTCHANGE_OID 1,3,6,1,2,1,4,27 |
| 20 |
|
| 21 |
#define COLUMN_IPV4INTERFACEIFINDEX 1 |
| 22 |
|
| 23 |
#define COLUMN_IPV4INTERFACEREASMMAXSIZE 2 |
| 24 |
|
| 25 |
#define COLUMN_IPV4INTERFACEENABLESTATUS 3 |
| 26 |
#define COLUMN_IPV4INTERFACEENABLESTATUS_FLAG (0x1 << 2) |
| 27 |
|
| 28 |
#define COLUMN_IPV4INTERFACERETRANSMITTIME 4 |
| 29 |
|
| 30 |
|
| 31 |
#define IPV4INTERFACETABLE_MIN_COL COLUMN_IPV4INTERFACEREASMMAXSIZE |
| 32 |
#define IPV4INTERFACETABLE_MAX_COL COLUMN_IPV4INTERFACERETRANSMITTIME |
| 33 |
|
| 34 |
|
| 35 |
/* |
| 36 |
* TODO:405:r: Review IPV4INTERFACETABLE_SETTABLE_COLS macro. |
| 37 |
* OR together all the writable cols. |
| 38 |
*/ |
| 39 |
#define IPV4INTERFACETABLE_SETTABLE_COLS (COLUMN_IPV4INTERFACEENABLESTATUS_FLAG) |
| 40 |
/* |
| 41 |
* NOTES on enums |
| 42 |
* ============== |
| 43 |
* |
| 44 |
* Value Mapping |
| 45 |
* ------------- |
| 46 |
* If the values for your data type don't exactly match the |
| 47 |
* possible values defined by the mib, you should map them |
| 48 |
* below. For example, a boolean flag (1/0) is usually represented |
| 49 |
* as a TruthValue in a MIB, which maps to the values (1/2). |
| 50 |
* |
| 51 |
*/ |
| 52 |
/************************************************************************* |
| 53 |
************************************************************************* |
| 54 |
* |
| 55 |
* enum definitions for table ipv4InterfaceTable |
| 56 |
* |
| 57 |
************************************************************************* |
| 58 |
*************************************************************************/ |
| 59 |
|
| 60 |
/************************************************************* |
| 61 |
* constants for enums for the MIB node |
| 62 |
* ipv4InterfaceEnableStatus (INTEGER / ASN_INTEGER) |
| 63 |
* |
| 64 |
* since a Textual Convention may be referenced more than once in a |
| 65 |
* MIB, protect againt redefinitions of the enum values. |
| 66 |
*/ |
| 67 |
#ifndef IPV4INTERFACEENABLESTATUS_ENUMS |
| 68 |
#define IPV4INTERFACEENABLESTATUS_ENUMS |
| 69 |
|
| 70 |
#define IPV4INTERFACEENABLESTATUS_UP 1 |
| 71 |
#define IPV4INTERFACEENABLESTATUS_DOWN 2 |
| 72 |
|
| 73 |
#endif /* IPV4INTERFACEENABLESTATUS_ENUMS */ |
| 74 |
|
| 75 |
|
| 76 |
|
| 77 |
|
| 78 |
#ifdef __cplusplus |
| 79 |
} |
| 80 |
#endif |
| 81 |
#endif /* IPV4INTERFACETABLE_OIDS_H */ |