From 1dfae602a65fd7ce1fc83966465befc87dd2290f Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Mon, 3 Jul 2006 20:34:42 +0000 Subject: [PATCH] rename connection getters --- src/os/solaris/solaris_sigar.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/os/solaris/solaris_sigar.c b/src/os/solaris/solaris_sigar.c index db50001a..4c634a62 100644 --- a/src/os/solaris/solaris_sigar.c +++ b/src/os/solaris/solaris_sigar.c @@ -2028,9 +2028,9 @@ int sigar_net_interface_stat_get(sigar_t *sigar, const char *name, #define TCPQ_SIZE(s) ((s) >= 0 ? (s) : 0) -static int tcp_connection_list_get(sigar_net_connection_walker_t *walker, - struct mib2_tcpConnEntry *entry, - int len) +static int tcp_connection_get(sigar_net_connection_walker_t *walker, + struct mib2_tcpConnEntry *entry, + int len) { sigar_t *sigar = walker->sigar; int flags = walker->flags; @@ -2120,9 +2120,9 @@ static int tcp_connection_list_get(sigar_net_connection_walker_t *walker, return SIGAR_OK; } -static int udp_connection_list_get(sigar_net_connection_walker_t *walker, - struct mib2_udpEntry *entry, - int len) +static int udp_connection_get(sigar_net_connection_walker_t *walker, + struct mib2_udpEntry *entry, + int len) { sigar_t *sigar = walker->sigar; int flags = walker->flags; @@ -2177,18 +2177,18 @@ int sigar_net_connection_walk(sigar_net_connection_walker_t *walker) want_tcp) { status = - tcp_connection_list_get(walker, - (struct mib2_tcpConnEntry *)data, - len); + tcp_connection_get(walker, + (struct mib2_tcpConnEntry *)data, + len); } else if ((op->level == MIB2_UDP) && (op->name == MIB2_UDP_5) && want_udp) { status = - udp_connection_list_get(walker, - (struct mib2_udpEntry *)data, - len); + udp_connection_get(walker, + (struct mib2_udpEntry *)data, + len); } else { status = SIGAR_OK;