diff options
Diffstat (limited to 'agent/mibgroup/ip-mib/ipAddressTable/ipAddressTable_constants.h')
-rw-r--r-- | agent/mibgroup/ip-mib/ipAddressTable/ipAddressTable_constants.h | 213 |
1 files changed, 213 insertions, 0 deletions
diff --git a/agent/mibgroup/ip-mib/ipAddressTable/ipAddressTable_constants.h b/agent/mibgroup/ip-mib/ipAddressTable/ipAddressTable_constants.h new file mode 100644 index 0000000..7e88550 --- /dev/null +++ b/agent/mibgroup/ip-mib/ipAddressTable/ipAddressTable_constants.h @@ -0,0 +1,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 */ |