Debian Codegraph @

agent/mibgroup/mibII/var_route.h

raw
1 /*
2 * Template MIB group interface - var_route.h
3 *
4 */
5 #ifndef _MIBGROUP_VAR_ROUTE_H
6 #define _MIBGROUP_VAR_ROUTE_H
7
8 config_require(mibII/ip);
9 #ifdef solaris2
10 config_require(kernel_sunos5);
11 #endif
12
13 #if defined(HAVE_SYS_SYSCTL_H) && !defined(linux)
14 const struct sockaddr *
15 get_address(const void *_ap, int addresses, int wanted);
16 const struct in_addr *
17 get_in_address(const void *ap, int addresses, int wanted);
18 #endif
19
20 #if defined(HAVE_IPHLPAPI_H)
21 #include <iphlpapi.h>
22 extern PMIB_IPFORWARDROW route_row;
23 #endif
24 extern int create_flag;
25
26 void init_var_route(void);
27
28 extern FindVarMethod var_ipRouteEntry;
29
30 #if !defined(hpux11) && !defined(solaris2)
31 RTENTRY **netsnmp_get_routes(size_t *out_numroutes);
32 #endif
33
34 #endif /* _MIBGROUP_VAR_ROUTE_H */