| 1 |
/* |
| 2 |
* interface data access header |
| 3 |
* |
| 4 |
* $Id$ |
| 5 |
*/ |
| 6 |
#ifndef NETSNMP_ACCESS_INTERFACE_CONFIG_H |
| 7 |
#define NETSNMP_ACCESS_INTERFACE_CONFIG_H |
| 8 |
|
| 9 |
/* |
| 10 |
* all platforms use this generic code |
| 11 |
*/ |
| 12 |
config_require(if-mib/data_access/interface); |
| 13 |
|
| 14 |
/**---------------------------------------------------------------------*/ |
| 15 |
/* |
| 16 |
* configure required files |
| 17 |
* |
| 18 |
* Notes: |
| 19 |
* |
| 20 |
* 1) prefer functionality over platform, where possible. If a method |
| 21 |
* is available for multiple platforms, test that first. That way |
| 22 |
* when a new platform is ported, it won't need a new test here. |
| 23 |
* |
| 24 |
* 2) don't do detail requirements here. If, for example, |
| 25 |
* HPUX11 had different reuirements than other HPUX, that should |
| 26 |
* be handled in the *_hpux.h header file. |
| 27 |
*/ |
| 28 |
|
| 29 |
config_exclude(mibII/interfaces); |
| 30 |
|
| 31 |
#if defined(linux) |
| 32 |
config_require(util_funcs); |
| 33 |
config_require(if-mib/data_access/interface_linux); |
| 34 |
config_require(if-mib/data_access/interface_ioctl); |
| 35 |
#elif defined( openbsd3 ) || \ |
| 36 |
defined( freebsd4 ) || defined( freebsd5 ) || defined( freebsd6 ) || \ |
| 37 |
defined( darwin ) || defined( dragonfly ) || defined( netbsd1 ) |
| 38 |
config_require(if-mib/data_access/interface_sysctl); |
| 39 |
#elif defined(solaris2) |
| 40 |
config_require(if-mib/data_access/interface_solaris2); |
| 41 |
#elif defined(HAVE_IPHLPAPI_H) && !defined(cygwin) |
| 42 |
config_require(if-mib/data_access/interface_iphlpapi); |
| 43 |
#else |
| 44 |
config_warning(This platform does not yet support the IF-MIB); |
| 45 |
config_require(if-mib/data_access/interface_unsup); |
| 46 |
#endif |
| 47 |
|
| 48 |
#endif /* NETSNMP_ACCESS_INTERFACE_CONFIG_H */ |