1 /* 2 *Copyright(c)2004,Cisco URP imburses and Network Information Center in Beijing University of Posts and Telecommunications researches. 3 * 4 *All right reserved 5 * 6 *File Name: expExpressionTable.h 7 *File Description: head file. 8 * 9 *Current Version:1.0 10 *Author:JianShun Tong 11 *Date:2004.8.20 12 */ 13 14 /* 15 * This file was generated by mib2c and is intended for use as a mib module 16 * for the ucd-snmp snmpd agent. 17 */ 18 19 20 #ifndef _MIBGROUP_EXPEXPRESSIONTABLE_H 21 #define _MIBGROUP_EXPEXPRESSIONTABLE_H 22 23 /* 24 * we may use header_complex from the header_complex module 25 */ 26 27 28 config_require(header_complex) 29 30 /* 31 * our storage structure(s) 32 */ 33 struct expExpressionTable_data { 34 35 /* 36 * expExpressionTable 37 */ 38 char *expExpressionOwner; 39 size_t expExpressionOwnerLen; 40 char *expExpressionName; 41 size_t expExpressionNameLen; 42 char *expExpression; 43 size_t expExpressionLen; 44 long expExpressionValueType; 45 char *expExpressionComment; 46 size_t expExpressionCommentLen; 47 long expExpressionDeltaInterval; 48 oid *expExpressionPrefix; 49 size_t expExpressionPrefixLen; 50 unsigned long expExpressionErrors; 51 long expExpressionEntryStatus; 52 53 /* 54 * expError Table 55 */ 56 unsigned long expErrorTime; 57 long expErrorIndex; 58 long expErrorCode; 59 oid *expErrorInstance; 60 size_t expErrorInstanceLen; 61 62 /* 63 * internal variables 64 */ 65 int storageType; 66 67 /* 68 * other tables storage 69 */ 70 struct header_complex_index *hc_ObjectTableStorage; 71 struct header_complex_index *hc_ValueTableStorage; 72 73 74 75 /* 76 * pdu auth contents 77 */ 78 long have_copied_auth_info; 79 long pdu_version; 80 long pdu_securityModel; 81 long pdu_securityLevel; 82 void *pdu_transport; 83 size_t pdu_transportLen; 84 const oid *pdu_tDomain; 85 size_t pdu_tDomainLen; 86 u_char *pdu_community; 87 size_t pdu_community_len; 88 char *pdu_contextName; 89 size_t pdu_contextNameLen; 90 char *pdu_securityName; 91 size_t pdu_securityNameLen; 92 }; 93 94 95 96 #define EXPEXPRESSION_COUNTER32 1 97 #define EXPEXPRESSION_UNSIGNED32 2 98 #define EXPEXPRESSION_TIMETICKS 3 99 #define EXPEXPRESSION_INTEGER32 4 100 #define EXPEXPRESSION_IPADDRESS 5 101 #define EXPEXPRESSION_OCTETSTRING 6 102 #define EXPEXPRESSION_OBJECTID 7 103 #define EXPEXPRESSION_COUNTER64 8 104 105 106 #define EXP_FAILURE_INVALIDSYNTAX 1 107 #define EXP_FAILURE_UNDEFINEOBJECTINDEX 2 108 #define EXP_FAILURE_UNRECOGNIZEOPERATOR 3 109 #define EXP_FAILURE_UNRECOGNIZEDFUNCTION 4 110 #define EXP_FAILURE_INVALIDOPERANDTYPE 5 111 #define EXP_FAILURE_UNMATCHEDPARENTHESIS 6 112 #define EXP_FAILURE_TOOMANYWILDCARDVALUES 7 113 #define EXP_FAILURE_RECURSION 8 114 #define EXP_FAILURE_DELTATOOSHORT 9 115 #define EXP_FAILURE_RESOURCEUNAVAILABLE 10 116 #define EXP_FAILURE_DIVIDEBYZERO 11 117 118 119 extern struct header_complex_index *expExpressionTableStorage; 120 121 /* 122 * function prototypes 123 */ 124 125 126 void init_expExpressionTable(void); 127 FindVarMethod var_expExpressionTable; 128 SNMPCallback store_expExpressionTable; 129 void parse_expExpressionTable(const char *, char *); 130 131 WriteMethod write_expExpression; 132 WriteMethod write_expExpressionValueType; 133 WriteMethod write_expExpressionComment; 134 WriteMethod write_expExpressionDeltaInterval; 135 WriteMethod write_expExpressionEntryStatus; 136 137 138 139 140 141 #endif /*_MIBGROUP_EXPEXPRESSIONTABLE_H */ 142