Debian Codegraph @

agent/mibgroup/mibII.h

raw
1 /*
2 * module to include the modules relavent to the mib-II mib(s)
3 */
4
5 config_require(mibII/system_mib);
6 config_require(mibII/sysORTable);
7 config_require(mibII/snmp_mib);
8 config_require(mibII/vacm_vars);
9 config_require(mibII/setSerialNo);
10 #if !defined(cygwin) || defined(HAVE_IPHLPAPI_H)
11 config_require(mibII/at);
12 config_require(mibII/ifTable);
13 #if !defined(darwin) || defined(HAVE_STRUCT_IN_IFADDR_IA_SUBNETMASK)
14 config_require(mibII/ip);
15 config_require(mibII/tcp);
16 config_require(mibII/udp);
17
18 /* mibII/ipv6 is activated via --enable-ipv6 and only builds on Linux+*BSD */
19 #if defined(NETSNMP_ENABLE_IPV6) && (defined(linux) || defined(freebsd3) || defined(netbsd1) || defined(openbsd4))
20 config_require(mibII/ipv6);
21 #endif /* defined(NETSNMP_ENABLE_IPV6) */
22
23 #endif /* !defined(darwin) || defined(HAVE_STRUCT_IN_IFADDR_IA_SUBNETMASK) */
24 config_require(mibII/icmp);
25 #endif /* !defined(cygwin) || defined(HAVE_IPHLPAPI_H) */
26
27 config_require(if-mib);
28
29 /*
30 * these new module re-rewrites have only been implemented for
31 * Linux and *BSD.
32 */
33 #if defined(linux)
34 config_require(ip-mib ip-forward-mib tcp-mib udp-mib);
35 #elif defined(dragonfly) || defined(freebsd7) || \
36 defined(netbsd5) || defined(openbsd4) || defined( darwin )
37 config_require(ip-mib ip-forward-mib tcp-mib udp-mib);
38 #elif defined(solaris2)
39 config_require(tcp-mib udp-mib);
40 config_require(ip-forward-mib);
41 config_require(ip-mib/ipAddressTable ip-mib/ipAddressPrefixTable);
42 config_require(ip-mib/ipDefaultRouterTable);
43 #elif defined(freebsd4)
44 config_require(tcp-mib udp-mib);
45 #elif defined(netbsd1)
46 config_require(tcp-mib udp-mib);
47 #endif
48
49 /*
50 * For Solaris, enable additional tables when it has extended MIB support.
51 */
52 #if defined( solaris2 ) && defined( HAVE_MIB2_IPIFSTATSENTRY_T )
53 config_require(ip-mib/ipSystemStatsTable ip-mib/ipIfStatsTable);
54 /* Still missing:
55 * ip-mib/inetNetToMediaTable
56 * ip-mib/ipv6ScopeZoneIndexTable
57 */
58 #endif