| 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 |
* Portions of this file are copyrighted by: |
| 6 |
* Copyright (c) 2016 VMware, Inc. All rights reserved. |
| 7 |
* Use is subject to license terms specified in the COPYING file |
| 8 |
* distributed with the Net-SNMP package. |
| 9 |
*/ |
| 10 |
#ifndef SNMPNOTIFYFILTERTABLE_CONSTANTS_H |
| 11 |
#define SNMPNOTIFYFILTERTABLE_CONSTANTS_H |
| 12 |
|
| 13 |
#ifdef __cplusplus |
| 14 |
extern "C" { |
| 15 |
#endif |
| 16 |
|
| 17 |
#include <snmp-notification-mib/snmpNotifyFilterTable/snmpNotifyFilterTable_data_storage.h> |
| 18 |
|
| 19 |
/* |
| 20 |
* column number definitions for table snmpNotifyFilterTable |
| 21 |
*/ |
| 22 |
#define SNMPNOTIFYFILTERTABLE_OID 1,3,6,1,6,3,13,1,3 |
| 23 |
|
| 24 |
#define COLUMN_SNMPNOTIFYFILTERSUBTREE 1 |
| 25 |
|
| 26 |
#define COLUMN_SNMPNOTIFYFILTERMASK 2 |
| 27 |
#define COLUMN_SNMPNOTIFYFILTERMASK_FLAG (0x1 << 1) |
| 28 |
|
| 29 |
#define COLUMN_SNMPNOTIFYFILTERTYPE 3 |
| 30 |
#define COLUMN_SNMPNOTIFYFILTERTYPE_FLAG (0x1 << 2) |
| 31 |
|
| 32 |
#define COLUMN_SNMPNOTIFYFILTERSTORAGETYPE 4 |
| 33 |
#define COLUMN_SNMPNOTIFYFILTERSTORAGETYPE_FLAG (0x1 << 3) |
| 34 |
|
| 35 |
#define COLUMN_SNMPNOTIFYFILTERROWSTATUS 5 |
| 36 |
#define COLUMN_SNMPNOTIFYFILTERROWSTATUS_FLAG (0x1 << 4) |
| 37 |
|
| 38 |
|
| 39 |
#define SNMPNOTIFYFILTERTABLE_MIN_COL COLUMN_SNMPNOTIFYFILTERMASK |
| 40 |
#define SNMPNOTIFYFILTERTABLE_MAX_COL COLUMN_SNMPNOTIFYFILTERROWSTATUS |
| 41 |
|
| 42 |
|
| 43 |
/* |
| 44 |
* TODO:405:r: Review SNMPNOTIFYFILTERTABLE_SETTABLE_COLS macro. |
| 45 |
* OR together all the writable cols. |
| 46 |
*/ |
| 47 |
#define SNMPNOTIFYFILTERTABLE_SETTABLE_COLS (COLUMN_SNMPNOTIFYFILTERMASK_FLAG | COLUMN_SNMPNOTIFYFILTERTYPE_FLAG | COLUMN_SNMPNOTIFYFILTERSTORAGETYPE_FLAG | COLUMN_SNMPNOTIFYFILTERROWSTATUS_FLAG) |
| 48 |
/* |
| 49 |
* TODO:405:r: Review SNMPNOTIFYFILTERTABLE_REQUIRED_COLS macro. |
| 50 |
* OR together all the required rows for row creation. |
| 51 |
* default is writable cols w/out defaults. |
| 52 |
*/ |
| 53 |
#define SNMPNOTIFYFILTERTABLE_REQUIRED_COLS (COLUMN_SNMPNOTIFYFILTERROWSTATUS_FLAG) |
| 54 |
|
| 55 |
/* |
| 56 |
* NOTES on enums |
| 57 |
* ============== |
| 58 |
* |
| 59 |
* Value Mapping |
| 60 |
* ------------- |
| 61 |
* If the values for your data type don't exactly match the |
| 62 |
* possible values defined by the mib, you should map them |
| 63 |
* below. For example, a boolean flag (1/0) is usually represented |
| 64 |
* as a TruthValue in a MIB, which maps to the values (1/2). |
| 65 |
* |
| 66 |
*/ |
| 67 |
/************************************************************************* |
| 68 |
************************************************************************* |
| 69 |
* |
| 70 |
* enum definitions for table snmpNotifyFilterTable |
| 71 |
* |
| 72 |
************************************************************************* |
| 73 |
*************************************************************************/ |
| 74 |
|
| 75 |
/************************************************************* |
| 76 |
* constants for enums for the MIB node |
| 77 |
* snmpNotifyFilterType (INTEGER / ASN_INTEGER) |
| 78 |
* |
| 79 |
* since a Textual Convention may be referenced more than once in a |
| 80 |
* MIB, protect againt redefinitions of the enum values. |
| 81 |
*/ |
| 82 |
|
| 83 |
|
| 84 |
/************************************************************* |
| 85 |
* constants for enums for the MIB node |
| 86 |
* snmpNotifyFilterStorageType (StorageType / ASN_INTEGER) |
| 87 |
* |
| 88 |
* since a Textual Convention may be referenced more than once in a |
| 89 |
* MIB, protect againt redefinitions of the enum values. |
| 90 |
*/ |
| 91 |
#ifndef STORAGETYPE_ENUMS |
| 92 |
#define STORAGETYPE_ENUMS |
| 93 |
|
| 94 |
#define STORAGETYPE_OTHER 1 |
| 95 |
#define STORAGETYPE_VOLATILE 2 |
| 96 |
#define STORAGETYPE_NONVOLATILE 3 |
| 97 |
#define STORAGETYPE_PERMANENT 4 |
| 98 |
#define STORAGETYPE_READONLY 5 |
| 99 |
|
| 100 |
#endif /* STORAGETYPE_ENUMS */ |
| 101 |
|
| 102 |
|
| 103 |
/************************************************************* |
| 104 |
* constants for enums for the MIB node |
| 105 |
* snmpNotifyFilterRowStatus (RowStatus / ASN_INTEGER) |
| 106 |
* |
| 107 |
* since a Textual Convention may be referenced more than once in a |
| 108 |
* MIB, protect againt redefinitions of the enum values. |
| 109 |
*/ |
| 110 |
#ifndef ROWSTATUS_ENUMS |
| 111 |
#define ROWSTATUS_ENUMS |
| 112 |
|
| 113 |
#define ROWSTATUS_ACTIVE 1 |
| 114 |
#define ROWSTATUS_NOTINSERVICE 2 |
| 115 |
#define ROWSTATUS_NOTREADY 3 |
| 116 |
#define ROWSTATUS_CREATEANDGO 4 |
| 117 |
#define ROWSTATUS_CREATEANDWAIT 5 |
| 118 |
#define ROWSTATUS_DESTROY 6 |
| 119 |
|
| 120 |
#endif /* ROWSTATUS_ENUMS */ |
| 121 |
|
| 122 |
|
| 123 |
|
| 124 |
|
| 125 |
#ifdef __cplusplus |
| 126 |
} |
| 127 |
#endif |
| 128 |
#endif /* SNMPNOTIFYFILTERTABLE_OIDS_H */ |