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

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:expValueTable.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. /*
  18.  * we may use header_complex from the header_complex module 
  19.  */
  20. config_require(header_complex)
  21. #ifndef _MIBGROUP_EXPVALUETABLE_H
  22. #define _MIBGROUP_EXPVALUETABLE_H
  23.      struct expValueTable_data {
  24.          char           *expExpressionOwner;
  25.          size_t          expExpressionOwnerLen;
  26.          char           *expExpressionName;
  27.          size_t          expExpressionNameLen;
  28.          oid            *expValueInstance;
  29.          size_t          expValueInstanceLen;
  30.          unsigned long   expValueCounter32Val;
  31.          unsigned long   expValueUnsigned32Val;
  32.          unsigned long   expValueTimeTicksVal;
  33.          long            expValueInteger32Val;
  34.          u_long         *expValueIpAddressVal;
  35.          char           *expValueOctetStringVal;
  36.          size_t          expValueOctetStringValLen;
  37.          oid            *expValueOidVal;
  38.          size_t          expValueOidValLen;
  39.          long            expValueCounter64Val;
  40.          /* internal var */
  41.          struct expExpressionTable_data *expression_data;
  42.          char           *valuestr;
  43.      };
  44.     /*
  45.      * function prototypes 
  46.      */
  47.      void            init_expValueTable(void);
  48.      unsigned long   get_result(char *expr);
  49.      FindVarMethod   var_expValueTable;
  50.      int             expValueTable_add(struct expExpressionTable_data
  51.                                        *expression_data, char *owner,
  52.                                        size_t owner_len, char *name,
  53.                                        size_t name_len, oid * index,
  54.                                        size_t index_len);
  55. #endif                          /* _MIBGROUP_EXPVALUETABLE_H */