| 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 TCPCONNECTIONTABLE_CONSTANTS_H |
| 8 |
#define TCPCONNECTIONTABLE_CONSTANTS_H |
| 9 |
|
| 10 |
#ifdef __cplusplus |
| 11 |
extern "C" { |
| 12 |
#endif |
| 13 |
|
| 14 |
|
| 15 |
/* |
| 16 |
* column number definitions for table tcpConnectionTable |
| 17 |
*/ |
| 18 |
#define TCPCONNECTIONTABLE_OID 1,3,6,1,2,1,6,19 |
| 19 |
|
| 20 |
#define COLUMN_TCPCONNECTIONLOCALADDRESSTYPE 1 |
| 21 |
|
| 22 |
#define COLUMN_TCPCONNECTIONLOCALADDRESS 2 |
| 23 |
|
| 24 |
#define COLUMN_TCPCONNECTIONLOCALPORT 3 |
| 25 |
|
| 26 |
#define COLUMN_TCPCONNECTIONREMADDRESSTYPE 4 |
| 27 |
|
| 28 |
#define COLUMN_TCPCONNECTIONREMADDRESS 5 |
| 29 |
|
| 30 |
#define COLUMN_TCPCONNECTIONREMPORT 6 |
| 31 |
|
| 32 |
#define COLUMN_TCPCONNECTIONSTATE 7 |
| 33 |
#define COLUMN_TCPCONNECTIONSTATE_FLAG (0x1 << 6) |
| 34 |
|
| 35 |
#define COLUMN_TCPCONNECTIONPROCESS 8 |
| 36 |
|
| 37 |
|
| 38 |
#define TCPCONNECTIONTABLE_MIN_COL COLUMN_TCPCONNECTIONSTATE |
| 39 |
#define TCPCONNECTIONTABLE_MAX_COL COLUMN_TCPCONNECTIONPROCESS |
| 40 |
|
| 41 |
|
| 42 |
/* |
| 43 |
* TODO:405:r: Review TCPCONNECTIONTABLE_SETTABLE_COLS macro. |
| 44 |
* OR together all the writable cols. |
| 45 |
*/ |
| 46 |
#define TCPCONNECTIONTABLE_SETTABLE_COLS (COLUMN_TCPCONNECTIONSTATE_FLAG) |
| 47 |
/* |
| 48 |
* NOTES on enums |
| 49 |
* ============== |
| 50 |
* |
| 51 |
* Value Mapping |
| 52 |
* ------------- |
| 53 |
* If the values for your data type don't exactly match the |
| 54 |
* possible values defined by the mib, you should map them |
| 55 |
* below. For example, a boolean flag (1/0) is usually represented |
| 56 |
* as a TruthValue in a MIB, which maps to the values (1/2). |
| 57 |
* |
| 58 |
*/ |
| 59 |
/************************************************************************* |
| 60 |
************************************************************************* |
| 61 |
* |
| 62 |
* enum definitions for table tcpConnectionTable |
| 63 |
* |
| 64 |
************************************************************************* |
| 65 |
*************************************************************************/ |
| 66 |
|
| 67 |
/************************************************************* |
| 68 |
* constants for enums for the MIB node |
| 69 |
* tcpConnectionLocalAddressType (InetAddressType / ASN_INTEGER) |
| 70 |
* |
| 71 |
* since a Textual Convention may be referenced more than once in a |
| 72 |
* MIB, protect againt redefinitions of the enum values. |
| 73 |
*/ |
| 74 |
#ifndef INETADDRESSTYPE_ENUMS |
| 75 |
#define INETADDRESSTYPE_ENUMS |
| 76 |
|
| 77 |
#define INETADDRESSTYPE_UNKNOWN 0 |
| 78 |
#define INETADDRESSTYPE_IPV4 1 |
| 79 |
#define INETADDRESSTYPE_IPV6 2 |
| 80 |
#define INETADDRESSTYPE_IPV4Z 3 |
| 81 |
#define INETADDRESSTYPE_IPV6Z 4 |
| 82 |
#define INETADDRESSTYPE_DNS 16 |
| 83 |
|
| 84 |
#endif /* INETADDRESSTYPE_ENUMS */ |
| 85 |
|
| 86 |
|
| 87 |
/************************************************************* |
| 88 |
* constants for enums for the MIB node |
| 89 |
* tcpConnectionRemAddressType (InetAddressType / ASN_INTEGER) |
| 90 |
* |
| 91 |
* since a Textual Convention may be referenced more than once in a |
| 92 |
* MIB, protect againt redefinitions of the enum values. |
| 93 |
*/ |
| 94 |
#ifndef INETADDRESSTYPE_ENUMS |
| 95 |
#define INETADDRESSTYPE_ENUMS |
| 96 |
|
| 97 |
#define INETADDRESSTYPE_UNKNOWN 0 |
| 98 |
#define INETADDRESSTYPE_IPV4 1 |
| 99 |
#define INETADDRESSTYPE_IPV6 2 |
| 100 |
#define INETADDRESSTYPE_IPV4Z 3 |
| 101 |
#define INETADDRESSTYPE_IPV6Z 4 |
| 102 |
#define INETADDRESSTYPE_DNS 16 |
| 103 |
|
| 104 |
#endif /* INETADDRESSTYPE_ENUMS */ |
| 105 |
|
| 106 |
|
| 107 |
/************************************************************* |
| 108 |
* constants for enums for the MIB node |
| 109 |
* tcpConnectionState (INTEGER / ASN_INTEGER) |
| 110 |
* |
| 111 |
* since a Textual Convention may be referenced more than once in a |
| 112 |
* MIB, protect againt redefinitions of the enum values. |
| 113 |
*/ |
| 114 |
#ifndef TCPCONNECTIONSTATE_ENUMS |
| 115 |
#define TCPCONNECTIONSTATE_ENUMS |
| 116 |
|
| 117 |
#define TCPCONNECTIONSTATE_CLOSED 1 |
| 118 |
#define TCPCONNECTIONSTATE_LISTEN 2 |
| 119 |
#define TCPCONNECTIONSTATE_SYNSENT 3 |
| 120 |
#define TCPCONNECTIONSTATE_SYNRECEIVED 4 |
| 121 |
#define TCPCONNECTIONSTATE_ESTABLISHED 5 |
| 122 |
#define TCPCONNECTIONSTATE_FINWAIT1 6 |
| 123 |
#define TCPCONNECTIONSTATE_FINWAIT2 7 |
| 124 |
#define TCPCONNECTIONSTATE_CLOSEWAIT 8 |
| 125 |
#define TCPCONNECTIONSTATE_LASTACK 9 |
| 126 |
#define TCPCONNECTIONSTATE_CLOSING 10 |
| 127 |
#define TCPCONNECTIONSTATE_TIMEWAIT 11 |
| 128 |
#define TCPCONNECTIONSTATE_DELETETCB 12 |
| 129 |
|
| 130 |
#endif /* TCPCONNECTIONSTATE_ENUMS */ |
| 131 |
|
| 132 |
|
| 133 |
|
| 134 |
|
| 135 |
#ifdef __cplusplus |
| 136 |
} |
| 137 |
#endif |
| 138 |
#endif /* TCPCONNECTIONTABLE_OIDS_H */ |