lookupCtlTable.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:lookupCtlTable.h
  7.  *File Description:The head file of lookupCtlTable.c
  8.  *
  9.  *Current Version:1.0
  10.  *Author:ChenJing
  11.  *Date:2004.8.20
  12.  */
  13. #ifndef LOOKUPCTLTABLE_H
  14. #define LOOKUPCTLTABLE_H
  15. /*
  16.  * we may use header_complex from the header_complex module 
  17.  */
  18. config_require(header_complex);
  19.     /*
  20.      * our storage structure(s) 
  21.      */
  22. struct lookupTable_data {
  23.     char           *lookupCtlOwnerIndex;        /* string */
  24.     size_t          lookupCtlOwnerIndexLen;
  25.     char           *lookupCtlOperationName;     /* string */
  26.     size_t          lookupCtlOperationNameLen;
  27.     long            lookupCtlTargetAddressType; /* integer32 */
  28.     char           *lookupCtlTargetAddress;     /* string */
  29.     size_t          lookupCtlTargetAddressLen;
  30.     long            lookupCtlOperStatus;        /* integer */
  31.     unsigned long   lookupCtlTime;      /* unsigned integer */
  32.     long            lookupCtlRc;        /* integer32 */
  33.     long            lookupCtlRowStatus; /* integer */
  34.     int             storagetype;
  35.     struct lookupResultsTable_data *ResultsTable;
  36. };
  37. typedef struct lookupResultsTable_data {
  38.     struct lookupResultsTable_data *next;
  39.     char           *lookupCtlOwnerIndex;        /* string */
  40.     size_t          lookupCtlOwnerIndexLen;
  41.     char           *lookupCtlOperationName;     /* string */
  42.     size_t          lookupCtlOperationNameLen;
  43.     unsigned long   lookupResultsIndex;
  44.     long            lookupResultsAddressType;
  45.     char           *lookupResultsAddress;
  46.     size_t          lookupResultsAddressLen;
  47.     int             storagetype;
  48. } resultsIns;
  49. /*
  50.  * function declarations 
  51.  */
  52. void            init_lookupCtlTable(void);
  53. FindVarMethod   var_lookupCtlTable;
  54. void            parse_lookupCtlTable(const char *, char *);
  55. SNMPCallback    store_lookupCtlTable;
  56. WriteMethod     write_lookupCtlTargetAddressType;
  57. WriteMethod     write_lookupCtlTargetAddress;
  58. WriteMethod     write_lookupCtlRowStatus;
  59. WriteMethod     write_lookupCtlRowStatus;
  60. /*
  61.  * column number definitions for table lookupCtlTable 
  62.  */
  63. #define COLUMN_LOOKUPCTLOWNERINDEX 1
  64. #define COLUMN_LOOKUPCTLOPERATIONNAME 2
  65. #define COLUMN_LOOKUPCTLTARGETADDRESSTYPE 3
  66. #define COLUMN_LOOKUPCTLTARGETADDRESS 4
  67. #define COLUMN_LOOKUPCTLOPERSTATUS 5
  68. #define COLUMN_LOOKUPCTLTIME 6
  69. #define COLUMN_LOOKUPCTLRC 7
  70. #define COLUMN_LOOKUPCTLROWSTATUS 8
  71. #endif                          /* LOOKUPMIB_H */