Remove useless tcpMaxConn

This commit is contained in:
Doug MacEachern 2007-08-08 05:05:16 +00:00
parent 7a440f9727
commit 7e0b4af3ca
8 changed files with 3 additions and 14 deletions

View File

@ -1023,11 +1023,6 @@ my %classes = (
},
],
TcpStat => [
{
name => 'max_conn', type => 'Int',
desc => '',
plat => ''
},
{
name => 'active_opens', type => 'Long',
desc => '',

View File

@ -688,7 +688,6 @@ sigar_net_stat_port_get(sigar_t *sigar,
/* TCP-MIB */
typedef struct {
sigar_uint32_t max_conn;
sigar_uint64_t active_opens;
sigar_uint64_t passive_opens;
sigar_uint64_t attempt_fails;

View File

@ -2280,7 +2280,6 @@ sigar_tcp_stat_get(sigar_t *sigar,
return ENOENT;
}
tcpstat->max_conn = -1;
tcpstat->active_opens = proto.u.tcp.initiated;
tcpstat->passive_opens = proto.u.tcp.accepted;
tcpstat->attempt_fails = proto.u.tcp.dropped;

View File

@ -2223,7 +2223,6 @@ sigar_tcp_stat_get(sigar_t *sigar,
return errno;
}
tcpstat->max_conn = -1;
tcpstat->active_opens = mib.tcps_connattempt;
tcpstat->passive_opens = mib.tcps_accepts;
tcpstat->attempt_fails = mib.tcps_conndrops;

View File

@ -1053,8 +1053,8 @@ static struct {
{ ID_tcpRtoAlgorithm, tcpsoff(xxx) },
{ ID_tcpRtoMin, tcpsoff(xxx) },
{ ID_tcpRtoMax, tcpsoff(xxx) },
#endif
{ ID_tcpMaxConn, tcpsoff(max_conn) },
#endif
{ ID_tcpActiveOpens, tcpsoff(active_opens) },
{ ID_tcpPassiveOpens, tcpsoff(passive_opens) },
{ ID_tcpAttemptFails, tcpsoff(attempt_fails) },

View File

@ -2150,9 +2150,8 @@ sigar_tcp_stat_get(sigar_t *sigar,
if (status == SIGAR_OK) {
/* assuming field order, same in 2.2, 2.4 and 2.6 kernels */
/* Tcp: RtoAlgorithm RtoMin RtoMax */
ptr = sigar_skip_multiple_token(ptr, 4);
tcpstat->max_conn = sigar_strtoul(ptr);
/* Tcp: RtoAlgorithm RtoMin RtoMax MaxConn */
ptr = sigar_skip_multiple_token(ptr, 5);
tcpstat->active_opens = sigar_strtoull(ptr);
tcpstat->passive_opens = sigar_strtoull(ptr);
tcpstat->attempt_fails = sigar_strtoull(ptr);

View File

@ -2403,7 +2403,6 @@ sigar_tcp_stat_get(sigar_t *sigar,
}
if (mib) {
tcpstat->max_conn = mib->tcpMaxConn;
tcpstat->active_opens = mib->tcpActiveOpens;
tcpstat->passive_opens = mib->tcpPassiveOpens;
tcpstat->attempt_fails = mib->tcpAttemptFails;

View File

@ -2804,7 +2804,6 @@ sigar_tcp_stat_get(sigar_t *sigar,
return status;
}
tcpstat->max_conn = mib.dwMaxConn;
tcpstat->active_opens = mib.dwActiveOpens;
tcpstat->passive_opens = mib.dwPassiveOpens;
tcpstat->attempt_fails = mib.dwAttemptFails;