|
1 /* |
|
2 * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved. |
|
3 * |
|
4 * U.S. Government Rights - Commercial software. Government users are subject |
|
5 * to the Sun Microsystems, Inc. standard license agreement and applicable |
|
6 * provisions of the FAR and its supplements. |
|
7 * |
|
8 * |
|
9 * This distribution may include materials developed by third parties. Sun, |
|
10 * Sun Microsystems, the Sun logo and Solaris are trademarks or registered |
|
11 * trademarks of Sun Microsystems, Inc. in the U.S. and other countries. |
|
12 * |
|
13 */ |
|
14 /* |
|
15 * Note: this file originally auto-generated by mib2c using |
|
16 * : mib2c.iterate.conf,v 5.5 2002/12/16 22:50:18 hardaker Exp $ |
|
17 */ |
|
18 #ifndef ENTLOGICALTABLE_H |
|
19 #define ENTLOGICALTABLE_H |
|
20 |
|
21 /* function declarations */ |
|
22 void init_entLogicalTable(void); |
|
23 void initialize_table_entLogicalTable(void); |
|
24 Netsnmp_Node_Handler entLogicalTable_handler; |
|
25 |
|
26 Netsnmp_First_Data_Point entLogicalTable_get_first_data_point; |
|
27 Netsnmp_Next_Data_Point entLogicalTable_get_next_data_point; |
|
28 |
|
29 #define ENT_LOGICAL_TABLE "ENT_LOGICAL_TABLE" |
|
30 |
|
31 /* column number definitions for table entLogicalTable */ |
|
32 #define COLUMN_ENTLOGICALINDEX 1 |
|
33 #define COLUMN_ENTLOGICALDESCR 2 |
|
34 #define COLUMN_ENTLOGICALTYPE 3 |
|
35 #define COLUMN_ENTLOGICALCOMMUNITY 4 |
|
36 #define COLUMN_ENTLOGICALTADDRESS 5 |
|
37 #define COLUMN_ENTLOGICALTDOMAIN 6 |
|
38 #define COLUMN_ENTLOGICALCONTEXTENGINEID 7 |
|
39 #define COLUMN_ENTLOGICALCONTEXTNAME 8 |
|
40 |
|
41 typedef struct entLogicalEntry_s { |
|
42 |
|
43 int_l entLogicalIndex; |
|
44 char *entLogicalDescr; |
|
45 oid *entLogicalType; |
|
46 int_l entLogicalTypeSize; |
|
47 char *entLogicalCommunity; |
|
48 char *entLogicalTAddress; |
|
49 oid *entLogicalTDomain; |
|
50 int_l entLogicalTDomainSize; |
|
51 char *entLogicalContextEngineId; |
|
52 char *entLogicalContextName; |
|
53 struct entLogicalEntry_s* pNextEntry; |
|
54 |
|
55 } entLogicalEntry_t; |
|
56 |
|
57 extern void populate_entLogicalEntry(entLogicalEntry_t*, char*, oid*, int, char*, char*, oid*, int, char*, char*); |
|
58 |
|
59 extern int allocLogicalEntry(int , entLogicalEntry_t*); |
|
60 |
|
61 extern entLogicalEntry_t* getLogicalTableEntry(int xLogicalIndex); |
|
62 extern entLogicalEntry_t* getLogicalTableStaleEntry(int xLogicalIndex); |
|
63 extern int deleteLogicalTableEntry(int xLogicalIndex); |
|
64 extern int makeLogicalTableEntryStale(int xLogicalIndex); |
|
65 extern int makeLogicalTableEntryLive(int xLogicalIndex); |
|
66 |
|
67 |
|
68 #endif /* ENTLOGICALTABLE_H */ |