1 /*
2  * This C header file has been generated by smidump 0.2.17.
3  * It is intended to be used with the NET-SNMP package.
4  *
5  * This header is derived from the IF-MIB module.
6  *
7  * $Id: if-mib.h 1154 2001-08-24 10:09:18Z strauss $
8  */
9 
10 #ifndef _IF_MIB_H_
11 #define _IF_MIB_H_
12 
13 #include <stdlib.h>
14 
15 #ifdef HAVE_STDINT_H
16 #include <stdint.h>
17 #endif
18 
19 /*
20  * C type definitions for IF-MIB::interfaces.
21  */
22 
23 typedef struct interfaces {
24     int32_t   *ifNumber;
25     void      *_clientData;		/* pointer to client data structure */
26 
27     /* private space to hold actual values */
28 
29     int32_t   __ifNumber;
30 } interfaces_t;
31 
32 /*
33  * C manager interface stubs for IF-MIB::interfaces.
34  */
35 
36 extern int
37 if_mib_mgr_get_interfaces(struct snmp_session *s, interfaces_t **interfaces);
38 
39 /*
40  * C agent interface stubs for IF-MIB::interfaces.
41  */
42 
43 extern int
44 if_mib_agt_read_interfaces(interfaces_t *interfaces);
45 extern int
46 if_mib_agt_register_interfaces();
47 
48 /*
49  * C type definitions for IF-MIB::ifEntry.
50  */
51 
52 typedef struct ifEntry {
53     int32_t   *ifIndex;
54     u_char    *ifDescr;
55     size_t    _ifDescrLength;
56     int32_t   *ifType;
57     int32_t   *ifMtu;
58     uint32_t  *ifSpeed;
59     u_char    *ifPhysAddress;
60     size_t    _ifPhysAddressLength;
61     int32_t   *ifAdminStatus;
62     int32_t   *ifOperStatus;
63     uint32_t  *ifLastChange;
64     uint32_t  *ifInOctets;
65     uint32_t  *ifInUcastPkts;
66     uint32_t  *ifInNUcastPkts;
67     uint32_t  *ifInDiscards;
68     uint32_t  *ifInErrors;
69     uint32_t  *ifInUnknownProtos;
70     uint32_t  *ifOutOctets;
71     uint32_t  *ifOutUcastPkts;
72     uint32_t  *ifOutNUcastPkts;
73     uint32_t  *ifOutDiscards;
74     uint32_t  *ifOutErrors;
75     uint32_t  *ifOutQLen;
76     uint32_t  *ifSpecific;
77     size_t    _ifSpecificLength;
78     void      *_clientData;		/* pointer to client data structure */
79     struct ifEntry *_nextPtr;	/* pointer to next table entry */
80 
81     /* private space to hold actual values */
82 
83     int32_t   __ifIndex;
84     u_char    __ifDescr[255];
85     int32_t   __ifType;
86     int32_t   __ifMtu;
87     uint32_t  __ifSpeed;
88     u_char    __ifPhysAddress[65535];
89     int32_t   __ifAdminStatus;
90     int32_t   __ifOperStatus;
91     uint32_t  __ifLastChange;
92     uint32_t  __ifInOctets;
93     uint32_t  __ifInUcastPkts;
94     uint32_t  __ifInNUcastPkts;
95     uint32_t  __ifInDiscards;
96     uint32_t  __ifInErrors;
97     uint32_t  __ifInUnknownProtos;
98     uint32_t  __ifOutOctets;
99     uint32_t  __ifOutUcastPkts;
100     uint32_t  __ifOutNUcastPkts;
101     uint32_t  __ifOutDiscards;
102     uint32_t  __ifOutErrors;
103     uint32_t  __ifOutQLen;
104     uint32_t  __ifSpecific[128];
105 } ifEntry_t;
106 
107 /*
108  * C manager interface stubs for IF-MIB::ifEntry.
109  */
110 
111 extern int
112 if_mib_mgr_get_ifEntry(struct snmp_session *s, ifEntry_t **ifEntry);
113 
114 /*
115  * C agent interface stubs for IF-MIB::ifEntry.
116  */
117 
118 extern int
119 if_mib_agt_read_ifEntry(ifEntry_t *ifEntry);
120 extern int
121 if_mib_agt_register_ifEntry();
122 
123 /*
124  * C type definitions for IF-MIB::ifMIBObjects.
125  */
126 
127 typedef struct ifMIBObjects {
128     uint32_t  *ifTableLastChange;
129     uint32_t  *ifStackLastChange;
130     void      *_clientData;		/* pointer to client data structure */
131 
132     /* private space to hold actual values */
133 
134     uint32_t  __ifTableLastChange;
135     uint32_t  __ifStackLastChange;
136 } ifMIBObjects_t;
137 
138 /*
139  * C manager interface stubs for IF-MIB::ifMIBObjects.
140  */
141 
142 extern int
143 if_mib_mgr_get_ifMIBObjects(struct snmp_session *s, ifMIBObjects_t **ifMIBObjects);
144 
145 /*
146  * C agent interface stubs for IF-MIB::ifMIBObjects.
147  */
148 
149 extern int
150 if_mib_agt_read_ifMIBObjects(ifMIBObjects_t *ifMIBObjects);
151 extern int
152 if_mib_agt_register_ifMIBObjects();
153 
154 /*
155  * C type definitions for IF-MIB::ifXEntry.
156  */
157 
158 typedef struct ifXEntry {
159     u_char    *ifName;
160     size_t    _ifNameLength;
161     uint32_t  *ifInMulticastPkts;
162     uint32_t  *ifInBroadcastPkts;
163     uint32_t  *ifOutMulticastPkts;
164     uint32_t  *ifOutBroadcastPkts;
165     uint64_t  *ifHCInOctets;
166     uint64_t  *ifHCInUcastPkts;
167     uint64_t  *ifHCInMulticastPkts;
168     uint64_t  *ifHCInBroadcastPkts;
169     uint64_t  *ifHCOutOctets;
170     uint64_t  *ifHCOutUcastPkts;
171     uint64_t  *ifHCOutMulticastPkts;
172     uint64_t  *ifHCOutBroadcastPkts;
173     int32_t   *ifLinkUpDownTrapEnable;
174     uint32_t  *ifHighSpeed;
175     int32_t   *ifPromiscuousMode;
176     int32_t   *ifConnectorPresent;
177     u_char    *ifAlias;
178     size_t    _ifAliasLength;
179     uint32_t  *ifCounterDiscontinuityTime;
180     void      *_clientData;		/* pointer to client data structure */
181     struct ifXEntry *_nextPtr;	/* pointer to next table entry */
182 
183     /* private space to hold actual values */
184 
185     u_char    __ifName[255];
186     uint32_t  __ifInMulticastPkts;
187     uint32_t  __ifInBroadcastPkts;
188     uint32_t  __ifOutMulticastPkts;
189     uint32_t  __ifOutBroadcastPkts;
190     uint64_t  __ifHCInOctets;
191     uint64_t  __ifHCInUcastPkts;
192     uint64_t  __ifHCInMulticastPkts;
193     uint64_t  __ifHCInBroadcastPkts;
194     uint64_t  __ifHCOutOctets;
195     uint64_t  __ifHCOutUcastPkts;
196     uint64_t  __ifHCOutMulticastPkts;
197     uint64_t  __ifHCOutBroadcastPkts;
198     int32_t   __ifLinkUpDownTrapEnable;
199     uint32_t  __ifHighSpeed;
200     int32_t   __ifPromiscuousMode;
201     int32_t   __ifConnectorPresent;
202     u_char    __ifAlias[64];
203     uint32_t  __ifCounterDiscontinuityTime;
204 } ifXEntry_t;
205 
206 /*
207  * C manager interface stubs for IF-MIB::ifXEntry.
208  */
209 
210 extern int
211 if_mib_mgr_get_ifXEntry(struct snmp_session *s, ifXEntry_t **ifXEntry);
212 
213 /*
214  * C agent interface stubs for IF-MIB::ifXEntry.
215  */
216 
217 extern int
218 if_mib_agt_read_ifXEntry(ifXEntry_t *ifXEntry);
219 extern int
220 if_mib_agt_register_ifXEntry();
221 
222 /*
223  * C type definitions for IF-MIB::ifStackEntry.
224  */
225 
226 typedef struct ifStackEntry {
227     int32_t   *ifStackHigherLayer;
228     int32_t   *ifStackLowerLayer;
229     int32_t   *ifStackStatus;
230     void      *_clientData;		/* pointer to client data structure */
231     struct ifStackEntry *_nextPtr;	/* pointer to next table entry */
232 
233     /* private space to hold actual values */
234 
235     int32_t   __ifStackHigherLayer;
236     int32_t   __ifStackLowerLayer;
237     int32_t   __ifStackStatus;
238 } ifStackEntry_t;
239 
240 /*
241  * C manager interface stubs for IF-MIB::ifStackEntry.
242  */
243 
244 extern int
245 if_mib_mgr_get_ifStackEntry(struct snmp_session *s, ifStackEntry_t **ifStackEntry);
246 
247 /*
248  * C agent interface stubs for IF-MIB::ifStackEntry.
249  */
250 
251 extern int
252 if_mib_agt_read_ifStackEntry(ifStackEntry_t *ifStackEntry);
253 extern int
254 if_mib_agt_register_ifStackEntry();
255 
256 /*
257  * C type definitions for IF-MIB::ifTestEntry.
258  */
259 
260 typedef struct ifTestEntry {
261     int32_t   *ifTestId;
262     int32_t   *ifTestStatus;
263     uint32_t  *ifTestType;
264     size_t    _ifTestTypeLength;
265     int32_t   *ifTestResult;
266     uint32_t  *ifTestCode;
267     size_t    _ifTestCodeLength;
268     u_char    *ifTestOwner;
269     size_t    _ifTestOwnerLength;
270     void      *_clientData;		/* pointer to client data structure */
271     struct ifTestEntry *_nextPtr;	/* pointer to next table entry */
272 
273     /* private space to hold actual values */
274 
275     int32_t   __ifTestId;
276     int32_t   __ifTestStatus;
277     uint32_t  __ifTestType[128];
278     int32_t   __ifTestResult;
279     uint32_t  __ifTestCode[128];
280     u_char    __ifTestOwner[255];
281 } ifTestEntry_t;
282 
283 /*
284  * C manager interface stubs for IF-MIB::ifTestEntry.
285  */
286 
287 extern int
288 if_mib_mgr_get_ifTestEntry(struct snmp_session *s, ifTestEntry_t **ifTestEntry);
289 
290 /*
291  * C agent interface stubs for IF-MIB::ifTestEntry.
292  */
293 
294 extern int
295 if_mib_agt_read_ifTestEntry(ifTestEntry_t *ifTestEntry);
296 extern int
297 if_mib_agt_register_ifTestEntry();
298 
299 /*
300  * C type definitions for IF-MIB::ifRcvAddressEntry.
301  */
302 
303 typedef struct ifRcvAddressEntry {
304     u_char    *ifRcvAddressAddress;
305     size_t    _ifRcvAddressAddressLength;
306     int32_t   *ifRcvAddressStatus;
307     int32_t   *ifRcvAddressType;
308     void      *_clientData;		/* pointer to client data structure */
309     struct ifRcvAddressEntry *_nextPtr;	/* pointer to next table entry */
310 
311     /* private space to hold actual values */
312 
313     u_char    __ifRcvAddressAddress[65535];
314     int32_t   __ifRcvAddressStatus;
315     int32_t   __ifRcvAddressType;
316 } ifRcvAddressEntry_t;
317 
318 /*
319  * C manager interface stubs for IF-MIB::ifRcvAddressEntry.
320  */
321 
322 extern int
323 if_mib_mgr_get_ifRcvAddressEntry(struct snmp_session *s, ifRcvAddressEntry_t **ifRcvAddressEntry);
324 
325 /*
326  * C agent interface stubs for IF-MIB::ifRcvAddressEntry.
327  */
328 
329 extern int
330 if_mib_agt_read_ifRcvAddressEntry(ifRcvAddressEntry_t *ifRcvAddressEntry);
331 extern int
332 if_mib_agt_register_ifRcvAddressEntry();
333 
334 
335 typedef struct if_mib {
336     interfaces_t	interfaces;
337     ifEntry_t	*ifEntry;
338     ifMIBObjects_t	ifMIBObjects;
339     ifXEntry_t	*ifXEntry;
340     ifStackEntry_t	*ifStackEntry;
341     ifTestEntry_t	*ifTestEntry;
342     ifRcvAddressEntry_t	*ifRcvAddressEntry;
343 } if_mib_t;
344 
345 /*
346  * Initialization function:
347  */
348 
349 void if_mib_agt_init(void);
350 
351 #endif /* _IF_MIB_H_ */
352