remove _stat from sigar_tcp names

This commit is contained in:
Doug MacEachern committed 2007-08-08 05:34:21 +00:00
1 parent 7e0b4af3ca
commit f8c583fbc8
16 files changed
+82 -84

No files matched your search

+11 -11
View File
@@ -2786,8 +2786,8 @@ sigar_net_connection_walk(sigar_net_connection_walker_t *walker)
sigar->iphlpapi.get_tcp_stats.func
SIGAR_DECLARE(int)
sigar_tcp_stat_get(sigar_t *sigar,
sigar_tcp_stat_t *tcpstat)
sigar_tcp_get(sigar_t *sigar,
sigar_tcp_t *tcp)
{
MIB_TCPSTATS mib;
int status;
@@ -2804,15 +2804,15 @@ sigar_tcp_stat_get(sigar_t *sigar,
return status;
}
tcpstat->active_opens = mib.dwActiveOpens;
tcpstat->passive_opens = mib.dwPassiveOpens;
tcpstat->attempt_fails = mib.dwAttemptFails;
tcpstat->estab_resets = mib.dwEstabResets;
tcpstat->curr_estab = mib.dwCurrEstab;
tcpstat->in_segs = mib.dwInSegs;
tcpstat->out_segs = mib.dwOutSegs;
tcpstat->retrans_segs = mib.dwRetransSegs;
tcpstat->out_rsts = mib.dwOutRsts;
tcp->active_opens = mib.dwActiveOpens;
tcp->passive_opens = mib.dwPassiveOpens;
tcp->attempt_fails = mib.dwAttemptFails;
tcp->estab_resets = mib.dwEstabResets;
tcp->curr_estab = mib.dwCurrEstab;
tcp->in_segs = mib.dwInSegs;
tcp->out_segs = mib.dwOutSegs;
tcp->retrans_segs = mib.dwRetransSegs;
tcp->out_rsts = mib.dwOutRsts;
return SIGAR_OK;
}