expExpressionTable.h
上传用户:wxp200602
上传日期:2007-10-30
资源大小:4028k
文件大小:4k
源码类别:

SNMP编程

开发平台:

Unix_Linux

  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.  * This file was generated by mib2c and is intended for use as a mib module
  15.  * for the ucd-snmp snmpd agent. 
  16.  */
  17. #ifndef _MIBGROUP_EXPEXPRESSIONTABLE_H
  18. #define _MIBGROUP_EXPEXPRESSIONTABLE_H
  19. /*
  20.  * we may use header_complex from the header_complex module 
  21.  */
  22. config_require(header_complex)
  23.     /*
  24.      * our storage structure(s) 
  25.      */
  26.      struct expExpressionTable_data {
  27.          /*
  28.           * expExpressionTable
  29.           */
  30.          char           *expExpressionOwner;
  31.          size_t          expExpressionOwnerLen;
  32.          char           *expExpressionName;
  33.          size_t          expExpressionNameLen;
  34.          char           *expExpression;
  35.          size_t          expExpressionLen;
  36.          long            expExpressionValueType;
  37.          char           *expExpressionComment;
  38.          size_t          expExpressionCommentLen;
  39.          long            expExpressionDeltaInterval;
  40.          oid            *expExpressionPrefix;
  41.          size_t          expExpressionPrefixLen;
  42.          unsigned long   expExpressionErrors;
  43.          long            expExpressionEntryStatus;
  44.          /*
  45.           * expError Table 
  46.           */
  47.          unsigned long   expErrorTime;
  48.          long            expErrorIndex;
  49.          long            expErrorCode;
  50.          oid            *expErrorInstance;
  51.          size_t          expErrorInstanceLen;
  52.          /*
  53.           * internal variables 
  54.           */
  55.          int             storageType;
  56.          /*
  57.           * other tables storage
  58.           */
  59.          struct header_complex_index *hc_ObjectTableStorage;
  60.          struct header_complex_index *hc_ValueTableStorage;
  61.          /*
  62.           * pdu auth contents 
  63.           */
  64.          long            have_copied_auth_info;
  65.          long            pdu_version;
  66.          long            pdu_securityModel;
  67.          long            pdu_securityLevel;
  68.          void           *pdu_transport;
  69.          size_t          pdu_transportLen;
  70.          const oid      *pdu_tDomain;
  71.          size_t          pdu_tDomainLen;
  72.          u_char         *pdu_community;
  73.          size_t          pdu_community_len;
  74.          char           *pdu_contextName;
  75.          size_t          pdu_contextNameLen;
  76.          char           *pdu_securityName;
  77.          size_t          pdu_securityNameLen;
  78.      };
  79. #define EXPEXPRESSION_COUNTER32      1
  80. #define EXPEXPRESSION_UNSIGNED32        2
  81. #define EXPEXPRESSION_TIMETICKS         3
  82. #define EXPEXPRESSION_INTEGER32  4
  83. #define EXPEXPRESSION_IPADDRESS      5
  84. #define EXPEXPRESSION_OCTETSTRING 6
  85. #define EXPEXPRESSION_OBJECTID            7
  86. #define EXPEXPRESSION_COUNTER64           8
  87. #define EXP_FAILURE_INVALIDSYNTAX 1
  88. #define EXP_FAILURE_UNDEFINEOBJECTINDEX 2
  89. #define EXP_FAILURE_UNRECOGNIZEOPERATOR 3
  90. #define EXP_FAILURE_UNRECOGNIZEDFUNCTION 4
  91. #define EXP_FAILURE_INVALIDOPERANDTYPE 5
  92. #define EXP_FAILURE_UNMATCHEDPARENTHESIS 6
  93. #define EXP_FAILURE_TOOMANYWILDCARDVALUES    7
  94. #define EXP_FAILURE_RECURSION            8
  95. #define EXP_FAILURE_DELTATOOSHORT              9
  96. #define EXP_FAILURE_RESOURCEUNAVAILABLE        10
  97. #define EXP_FAILURE_DIVIDEBYZERO        11
  98. /*
  99.  * function prototypes 
  100.  */
  101.      void            init_expExpressionTable(void);
  102.      FindVarMethod   var_expExpressionTable;
  103.      SNMPCallback    store_expExpressionTable;
  104.      void            parse_expExpressionTable(const char *, char *);
  105.      WriteMethod     write_expExpression;
  106.      WriteMethod     write_expExpressionValueType;
  107.      WriteMethod     write_expExpressionComment;
  108.      WriteMethod     write_expExpressionDeltaInterval;
  109.      WriteMethod     write_expExpressionEntryStatus;
  110. #endif                          /*_MIBGROUP_EXPEXPRESSIONTABLE_H */