rename connection getters

This commit is contained in:
Doug MacEachern 2006-07-03 20:34:42 +00:00
parent b313b3ec27
commit 1dfae602a6
1 changed files with 12 additions and 12 deletions

View File

@ -2028,9 +2028,9 @@ int sigar_net_interface_stat_get(sigar_t *sigar, const char *name,
#define TCPQ_SIZE(s) ((s) >= 0 ? (s) : 0) #define TCPQ_SIZE(s) ((s) >= 0 ? (s) : 0)
static int tcp_connection_list_get(sigar_net_connection_walker_t *walker, static int tcp_connection_get(sigar_net_connection_walker_t *walker,
struct mib2_tcpConnEntry *entry, struct mib2_tcpConnEntry *entry,
int len) int len)
{ {
sigar_t *sigar = walker->sigar; sigar_t *sigar = walker->sigar;
int flags = walker->flags; int flags = walker->flags;
@ -2120,9 +2120,9 @@ static int tcp_connection_list_get(sigar_net_connection_walker_t *walker,
return SIGAR_OK; return SIGAR_OK;
} }
static int udp_connection_list_get(sigar_net_connection_walker_t *walker, static int udp_connection_get(sigar_net_connection_walker_t *walker,
struct mib2_udpEntry *entry, struct mib2_udpEntry *entry,
int len) int len)
{ {
sigar_t *sigar = walker->sigar; sigar_t *sigar = walker->sigar;
int flags = walker->flags; int flags = walker->flags;
@ -2177,18 +2177,18 @@ int sigar_net_connection_walk(sigar_net_connection_walker_t *walker)
want_tcp) want_tcp)
{ {
status = status =
tcp_connection_list_get(walker, tcp_connection_get(walker,
(struct mib2_tcpConnEntry *)data, (struct mib2_tcpConnEntry *)data,
len); len);
} }
else if ((op->level == MIB2_UDP) && else if ((op->level == MIB2_UDP) &&
(op->name == MIB2_UDP_5) && (op->name == MIB2_UDP_5) &&
want_udp) want_udp)
{ {
status = status =
udp_connection_list_get(walker, udp_connection_get(walker,
(struct mib2_udpEntry *)data, (struct mib2_udpEntry *)data,
len); len);
} }
else { else {
status = SIGAR_OK; status = SIGAR_OK;