Debian Codegraph @

agent/mibgroup/disman/nslookup/lookupCtlTable.h

raw
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
14 #ifndef LOOKUPCTLTABLE_H
15 #define LOOKUPCTLTABLE_H
16
17 /*
18 * we may use header_complex from the header_complex module
19 */
20
21
22 config_require(header_complex);
23
24 /*
25 * our storage structure(s)
26 */
27
28 struct lookupTable_data {
29 char *lookupCtlOwnerIndex; /* string */
30 size_t lookupCtlOwnerIndexLen;
31 char *lookupCtlOperationName; /* string */
32 size_t lookupCtlOperationNameLen;
33 long lookupCtlTargetAddressType; /* integer32 */
34 char *lookupCtlTargetAddress; /* string */
35 size_t lookupCtlTargetAddressLen;
36 long lookupCtlOperStatus; /* integer */
37 unsigned long lookupCtlTime; /* unsigned integer */
38 long lookupCtlRc; /* integer32 */
39 long lookupCtlRowStatus; /* integer */
40 int storagetype;
41
42 struct lookupResultsTable_data *ResultsTable;
43 };
44
45
46 struct lookupResultsTable_data {
47 struct lookupResultsTable_data *next;
48 char *lookupCtlOwnerIndex; /* string */
49 size_t lookupCtlOwnerIndexLen;
50 char *lookupCtlOperationName; /* string */
51 size_t lookupCtlOperationNameLen;
52 unsigned long lookupResultsIndex;
53 long lookupResultsAddressType;
54 char *lookupResultsAddress;
55 size_t lookupResultsAddressLen;
56 int storagetype;
57 };
58
59 extern struct header_complex_index *lookupCtlTableStorage;
60 extern struct header_complex_index *lookupResultsTableStorage;
61
62 /*
63 * function declarations
64 */
65 void init_lookupCtlTable(void);
66 FindVarMethod var_lookupCtlTable;
67 void parse_lookupCtlTable(const char *, char *);
68 SNMPCallback store_lookupCtlTable;
69
70 #ifndef NETSNMP_NO_WRITE_SUPPORT
71 WriteMethod write_lookupCtlTargetAddressType;
72 WriteMethod write_lookupCtlTargetAddress;
73 WriteMethod write_lookupCtlRowStatus;
74 #endif /* !NETSNMP_NO_WRITE_SUPPORT */
75
76 /*
77 * column number definitions for table lookupCtlTable
78 */
79 #define COLUMN_LOOKUPCTLOWNERINDEX 1
80 #define COLUMN_LOOKUPCTLOPERATIONNAME 2
81 #define COLUMN_LOOKUPCTLTARGETADDRESSTYPE 3
82 #define COLUMN_LOOKUPCTLTARGETADDRESS 4
83 #define COLUMN_LOOKUPCTLOPERSTATUS 5
84 #define COLUMN_LOOKUPCTLTIME 6
85 #define COLUMN_LOOKUPCTLRC 7
86 #define COLUMN_LOOKUPCTLROWSTATUS 8
87
88 #endif /* LOOKUPMIB_H */