Debian Codegraph @

agent/mibgroup/mibII/mibII_common.h

raw
1 #ifdef HAVE_STDLIB_H
2 #include <stdlib.h>
3 #endif
4 #ifdef HAVE_UNISTD_H
5 #include <unistd.h>
6 #endif
7
8 #ifdef HAVE_STRING_H
9 #include <string.h>
10 #else
11 #include <strings.h>
12 #endif
13 #include <sys/types.h>
14
15 #ifdef HAVE_SYS_PARAM_H
16 #include <sys/param.h>
17 #endif
18
19 #ifdef HAVE_NETINET_IN_H
20 #include <netinet/in.h>
21 #endif
22 #ifdef HAVE_SYS_SYSMP_H
23 #include <sys/sysmp.h>
24 #endif
25 #ifdef HAVE_SYS_TCPIPSTATS_H
26 #include <sys/tcpipstats.h>
27 #endif
28 #if defined(NETSNMP_IFNET_NEEDS_KERNEL) && !defined(_KERNEL)
29 #define _KERNEL 1
30 #define _I_DEFINED_KERNEL
31 #endif
32 #ifdef HAVE_SYS_SOCKET_H
33 #include <sys/socket.h>
34 #endif
35 #ifdef HAVE_NET_IF_H
36 #ifdef _I_DEFINED_KERNEL
37 #undef _KERNEL
38 #endif
39 #include <net/if.h>
40 #ifdef _I_DEFINED_KERNEL
41 #define _KERNEL 1
42 #endif
43 #endif
44 #ifdef HAVE_NET_IF_VAR_H
45 #include <net/if_var.h>
46 #endif
47 #ifdef _I_DEFINED_KERNEL
48 #undef _KERNEL
49 #endif
50
51 #ifdef HAVE_SYS_SYSCTL_H
52 #include <sys/sysctl.h>
53 #endif
54 #ifdef HAVE_SYS_STREAM_H
55 #include <sys/stream.h>
56 #endif
57 #ifdef HAVE_NET_ROUTE_H
58 #include <net/route.h>
59 #endif
60 #ifdef HAVE_NETINET_IN_SYSTM_H
61 #include <netinet/in_systm.h>
62 #endif
63 #ifdef HAVE_NETINET_IP_H
64 #include <netinet/ip.h>
65 #endif
66 #ifdef HAVE_SYS_QUEUE_H
67 #include <sys/queue.h>
68 #endif
69 /* IRIX 6.5 build breaks on sys/socketvar.h because _KMEMUSER brings in
70 sys/pda.h which doesn't compile */
71 #ifndef irix6
72 #ifdef HAVE_SYS_SOCKETVAR_H
73 #include <sys/socketvar.h>
74 #endif
75 #endif /* irix6 */
76 #ifdef HAVE_NETINET_IP_VAR_H
77 #include <netinet/ip_var.h>
78 #endif
79 #ifdef NETSNMP_ENABLE_IPV6
80 #ifdef HAVE_NETNETSNMP_ENABLE_IPV6_IP6_VAR_H
81 #include <netinet6/ip6_var.h>
82 #endif
83 #endif
84 #ifdef HAVE_NETINET_IN_PCB_H
85 #include <netinet/in_pcb.h>
86 #endif
87 #ifdef HAVE_INET_MIB2_H
88 #include <inet/mib2.h>
89 #endif
90 #ifdef HAVE_STDINT_H
91 #include <stdint.h>
92 #endif
93
94 #ifdef solaris2
95 #include "kernel_sunos5.h"
96 #else
97 #include "kernel.h"
98 #endif
99 #ifdef linux
100 #include "kernel_linux.h"
101 #endif
102 #ifdef NETBSD_STATS_VIA_SYSCTL
103 #include "kernel_netbsd.h"
104 #endif
105 #if defined(NETSNMP_CAN_USE_SYSCTL) /* && defined(ICMPCTL_STATS) */
106 #include "kernel_sysctl.h"
107 #endif
108
109 /* or MIB_xxxCOUNTER_SYMBOL || hpux11 */
110 #ifdef hpux
111 #include <sys/mib.h>
112 #include <netinet/mib_kern.h>
113 #endif
114
115 #ifdef cygwin
116 #include <windows.h>
117 #endif