all platforms use sigar.c:sigar_net_connection_list_get expect linux
This commit is contained in:
parent
336c22d863
commit
13751fe221
@ -81,6 +81,4 @@ struct sigar_t {
|
||||
|
||||
#define SIGAR_EPERM_KMEM (SIGAR_OS_START_ERROR+1)
|
||||
|
||||
#define SIGAR_USE_NET_CONNECTION_LIST_WALKER
|
||||
|
||||
#endif /* SIGAR_OS_H */
|
||||
|
@ -35,6 +35,4 @@ struct sigar_t {
|
||||
#define SIGAR_EPERM_KMEM (SIGAR_OS_START_ERROR+EACCES)
|
||||
#define SIGAR_EPROC_NOENT (SIGAR_OS_START_ERROR+2)
|
||||
|
||||
#define SIGAR_USE_NET_CONNECTION_LIST_WALKER
|
||||
|
||||
#endif /* SIGAR_OS_H */
|
||||
|
@ -19,6 +19,4 @@ struct sigar_t {
|
||||
|
||||
int hpux_get_mib_ifentry(int ppa, mib_ifEntry *mib);
|
||||
|
||||
#define SIGAR_USE_NET_CONNECTION_LIST_WALKER
|
||||
|
||||
#endif /* SIGAR_OS_H */
|
||||
|
@ -279,7 +279,5 @@ struct sigar_t {
|
||||
|
||||
#define SIGAR_EMIB2 (SIGAR_OS_START_ERROR+1)
|
||||
|
||||
#define SIGAR_USE_NET_CONNECTION_LIST_WALKER
|
||||
|
||||
#endif /* SIGAR_OS_H */
|
||||
|
||||
|
@ -719,10 +719,10 @@ SIGAR_DECLARE(const char *)sigar_net_connection_state_get(int state)
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef SIGAR_USE_NET_CONNECTION_LIST_WALKER
|
||||
#if !defined(__linux__)
|
||||
/*
|
||||
* implement sigar_net_connection_list_get using sigar_net_connection_walk
|
||||
* linux has its own list_get impl. other platforms still need walker impl
|
||||
* linux has its own list_get impl.
|
||||
*/
|
||||
static int net_connection_list_walker(sigar_net_connection_walker_t *walker,
|
||||
sigar_net_connection_t *conn)
|
||||
|
Loading…
Reference in New Issue
Block a user