fillin net_connection.state field

This commit is contained in:
Doug MacEachern 2005-03-11 17:02:30 +00:00
parent da09d33f35
commit 87b9f750b9
1 changed files with 4 additions and 1 deletions

View File

@ -1584,7 +1584,10 @@ static int proc_net_read(net_conn_getter_t *getter,
return status;
}
/* XXX state, rx/tx queue info would be useful */
/* SIGAR_TCP_* currently matches TCP_* in linux/tcp.h */
sscanf(ptr, "%2x", &conn.state);
/* XXX rx/tx queue info would be useful */
ptr = sigar_skip_multiple_token(ptr, 4);
conn.uid = sigar_strtoul(ptr);