all platforms use sigar.c:sigar_net_connection_list_get expect linux

This commit is contained in:
Doug MacEachern committed 2006-07-01 19:11:54 +00:00
1 parent 336c22d863
commit 13751fe221
5 files changed
+2 -10

No files matched your search

-2
View File
@@ -81,6 +81,4 @@ struct sigar_t {
#define SIGAR_EPERM_KMEM (SIGAR_OS_START_ERROR+1) #define SIGAR_EPERM_KMEM (SIGAR_OS_START_ERROR+1)
#define SIGAR_USE_NET_CONNECTION_LIST_WALKER
#endif /* SIGAR_OS_H */ #endif /* SIGAR_OS_H */
-2
View File
@@ -35,6 +35,4 @@ struct sigar_t {
#define SIGAR_EPERM_KMEM (SIGAR_OS_START_ERROR+EACCES) #define SIGAR_EPERM_KMEM (SIGAR_OS_START_ERROR+EACCES)
#define SIGAR_EPROC_NOENT (SIGAR_OS_START_ERROR+2) #define SIGAR_EPROC_NOENT (SIGAR_OS_START_ERROR+2)
#define SIGAR_USE_NET_CONNECTION_LIST_WALKER
#endif /* SIGAR_OS_H */ #endif /* SIGAR_OS_H */
-2
View File
@@ -19,6 +19,4 @@ struct sigar_t {
int hpux_get_mib_ifentry(int ppa, mib_ifEntry *mib); int hpux_get_mib_ifentry(int ppa, mib_ifEntry *mib);
#define SIGAR_USE_NET_CONNECTION_LIST_WALKER
#endif /* SIGAR_OS_H */ #endif /* SIGAR_OS_H */
-2
View File
@@ -279,7 +279,5 @@ struct sigar_t {
#define SIGAR_EMIB2 (SIGAR_OS_START_ERROR+1) #define SIGAR_EMIB2 (SIGAR_OS_START_ERROR+1)
#define SIGAR_USE_NET_CONNECTION_LIST_WALKER
#endif /* SIGAR_OS_H */ #endif /* SIGAR_OS_H */
+2 -2
View File
@@ -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 * 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, static int net_connection_list_walker(sigar_net_connection_walker_t *walker,
sigar_net_connection_t *conn) sigar_net_connection_t *conn)