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

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: expObjectTable.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_EXPOBJECTABLE_H
  18. #define _MIBGROUP_EXPOBJECTABLE_H
  19. /*
  20.  * we may use header_complex from the header_complex module 
  21.  */
  22. config_require(header_complex)
  23.      struct expObjectTable_data {
  24.          char           *expExpressionOwner;
  25.          size_t          expExpressionOwnerLen;
  26.          char           *expExpressionName;
  27.          size_t          expExpressionNameLen;
  28.          unsigned long   expObjectIndex;
  29.          oid            *expObjectID;
  30.          size_t          expObjectIDLen;
  31.          long            expObjectIDWildcard;
  32.          long            expObjectSampleType;
  33.          oid            *expObjectDeltaDiscontinuityID;
  34.          size_t          expObjectDeltaDiscontinuityIDLen;
  35.          long            expObjectDiscontinuityIDWildcard;
  36.          long            expObjectDiscontinuityIDType;
  37.          oid            *expObjectConditional;
  38.          size_t          expObjectConditionalLen;
  39.          long            expObjectConditionalWildcard;
  40.          long            expObjectEntryStatus;
  41.          /*
  42.           * internal variables 
  43.           */
  44.          int             storageType;
  45.      };
  46.      /*
  47.       * enum definitions from the covered mib sections 
  48.       */
  49. #define EXPOBJCETIDWILDCARD_TRUE      1
  50. #define EXPOBJCETIDWILDCARD_FALSE        2
  51. #define EXPOBJCETDISCONTINUITYIDWILDCARD_TRUE        1
  52. #define EXPOBJCETDISCONTINUITYIDWILDCARD_FALSE  2
  53. #define EXPOBJECTCONDITIONALWILDCARD_TRUE      1
  54. #define EXPOBJECTCONDITIONALWILDCARD_FALSE 2
  55. #define EXPOBJECTDISCONTINUITYIDTYPE_TIMETICKS         1
  56. #define EXPOBJECTDISCONTINUITYIDTYPE_TIMESTAMP           2
  57. #define EXPOBJECTDISCONTINUITYIDTYPE_DATEANDTIME 3
  58. #define EXPOBJCETSAMPLETYPE_ABSOLUTEVALUE 1
  59. #define EXPOBJCETSAMPLETYPE_DELTAVALUE 2
  60. #define EXPOBJCETSAMPLETYPE_CHANGEVALUE 3
  61.     /*
  62.      * function prototypes 
  63.      */
  64.      void            init_expObjectTable(void);
  65.      FindVarMethod   var_expObjectTable;
  66.      SNMPCallback    store_expObjectTable;
  67.      void            parse_expObjectTable(const char *, char *);
  68.      WriteMethod     write_expObjectID;
  69.      WriteMethod     write_expObjectIDWildcard;
  70.      WriteMethod     write_expObjectSampleType;
  71.      WriteMethod     write_expObjectDeltaDiscontinuityID;
  72.      WriteMethod     write_expObjectDiscontinuityIDWildcard;
  73.      WriteMethod     write_expObjectDiscontinuityIDType;
  74.      WriteMethod     write_expObjectConditional;
  75.      WriteMethod     write_expObjectConditionalWildcard;
  76.      WriteMethod     write_expObjectEntryStatus;
  77. #endif                          /* _MIBGROUP_EXPOBJECTABLE_H */