no net_connection queue metrics

This commit is contained in:
Doug MacEachern 2005-03-12 04:49:38 +00:00
parent 71b4db50c8
commit caed46facd
1 changed files with 4 additions and 0 deletions

View File

@ -2019,6 +2019,8 @@ static int net_conn_get_tcp(sigar_t *sigar,
sizeof(conn.remote_address), sizeof(conn.remote_address),
tcp->table[i].dwRemoteAddr); tcp->table[i].dwRemoteAddr);
conn.send_queue = conn.receive_queue = SIGAR_FIELD_NOTIMPL;
switch (state) { switch (state) {
case MIB_TCP_STATE_CLOSED: case MIB_TCP_STATE_CLOSED:
conn.state = SIGAR_TCP_CLOSE; conn.state = SIGAR_TCP_CLOSE;
@ -2110,6 +2112,8 @@ static int net_conn_get_udp(sigar_t *sigar,
sizeof(conn.remote_address), sizeof(conn.remote_address),
udp->table[i].dwLocalAddr); udp->table[i].dwLocalAddr);
conn.send_queue = conn.receive_queue = SIGAR_FIELD_NOTIMPL;
SIGAR_NET_CONNLIST_GROW(connlist); SIGAR_NET_CONNLIST_GROW(connlist);
memcpy(&connlist->data[connlist->number++], memcpy(&connlist->data[connlist->number++],
&conn, sizeof(conn)); &conn, sizeof(conn));