From 7f434cf5ce7f4d6fd0c3cb39b6993b2a4044d90a Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Tue, 20 Jun 2006 00:28:21 +0000 Subject: [PATCH] implement net_connection_walk --- src/os/linux/linux_sigar.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/os/linux/linux_sigar.c b/src/os/linux/linux_sigar.c index f730f63c..846bd286 100644 --- a/src/os/linux/linux_sigar.c +++ b/src/os/linux/linux_sigar.c @@ -1854,7 +1854,7 @@ static int proc_net_read(sigar_net_connection_walker_t *walker, return SIGAR_OK; } -static int net_conn_get(sigar_net_connection_walker_t *walker) +int sigar_net_connection_walk(sigar_net_connection_walker_t *walker) { int flags = walker->flags; int status; @@ -1936,7 +1936,7 @@ int sigar_net_connection_list_get(sigar_t *sigar, walker.data = &getter; walker.add_connection = proc_net_walker; - status = net_conn_get(&walker); + status = sigar_net_connection_walk(&walker); if (status != SIGAR_OK) { sigar_net_connection_list_destroy(sigar, connlist); @@ -1963,7 +1963,7 @@ static int sigar_net_connection_get(sigar_t *sigar, walker.data = &getter; walker.add_connection = proc_net_walker; - status = net_conn_get(&walker); + status = sigar_net_connection_walk(&walker); return status; }