rename connection getters
This commit is contained in:
parent
b313b3ec27
commit
1dfae602a6
|
@ -2028,7 +2028,7 @@ 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,
|
||||
static int tcp_connection_get(sigar_net_connection_walker_t *walker,
|
||||
struct mib2_tcpConnEntry *entry,
|
||||
int len)
|
||||
{
|
||||
|
@ -2120,7 +2120,7 @@ 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,
|
||||
static int udp_connection_get(sigar_net_connection_walker_t *walker,
|
||||
struct mib2_udpEntry *entry,
|
||||
int len)
|
||||
{
|
||||
|
@ -2177,7 +2177,7 @@ int sigar_net_connection_walk(sigar_net_connection_walker_t *walker)
|
|||
want_tcp)
|
||||
{
|
||||
status =
|
||||
tcp_connection_list_get(walker,
|
||||
tcp_connection_get(walker,
|
||||
(struct mib2_tcpConnEntry *)data,
|
||||
len);
|
||||
}
|
||||
|
@ -2186,7 +2186,7 @@ int sigar_net_connection_walk(sigar_net_connection_walker_t *walker)
|
|||
want_udp)
|
||||
{
|
||||
status =
|
||||
udp_connection_list_get(walker,
|
||||
udp_connection_get(walker,
|
||||
(struct mib2_udpEntry *)data,
|
||||
len);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue