store net_connection addresses in binary rather than string
This commit is contained in:
parent
8830e5e6ad
commit
c42c645a0a
@ -2071,11 +2071,11 @@ static int net_conn_get_tcp(sigar_net_connection_walker_t *walker)
|
|||||||
|
|
||||||
conn.type = SIGAR_NETCONN_TCP;
|
conn.type = SIGAR_NETCONN_TCP;
|
||||||
|
|
||||||
sigar_inet_ntoa(sigar, tcp->table[i].dwLocalAddr,
|
sigar_net_address_set(conn.local_address,
|
||||||
conn.local_address);
|
tcp->table[i].dwLocalAddr);
|
||||||
|
|
||||||
sigar_inet_ntoa(sigar, tcp->table[i].dwRemoteAddr,
|
sigar_net_address_set(conn.remote_address,
|
||||||
conn.remote_address);
|
tcp->table[i].dwRemoteAddr);
|
||||||
|
|
||||||
conn.send_queue = conn.receive_queue = SIGAR_FIELD_NOTIMPL;
|
conn.send_queue = conn.receive_queue = SIGAR_FIELD_NOTIMPL;
|
||||||
|
|
||||||
@ -2176,10 +2176,10 @@ static int net_conn_get_udp(sigar_net_connection_walker_t *walker)
|
|||||||
|
|
||||||
conn.type = SIGAR_NETCONN_UDP;
|
conn.type = SIGAR_NETCONN_UDP;
|
||||||
|
|
||||||
sigar_inet_ntoa(sigar, udp->table[i].dwLocalAddr,
|
sigar_net_address_set(conn.local_address,
|
||||||
conn.local_address);
|
udp->table[i].dwLocalAddr);
|
||||||
|
|
||||||
SIGAR_SSTRCPY(conn.remote_address, "0.0.0.0");
|
sigar_net_address_set(conn.remote_address, 0);
|
||||||
|
|
||||||
conn.send_queue = conn.receive_queue = SIGAR_FIELD_NOTIMPL;
|
conn.send_queue = conn.receive_queue = SIGAR_FIELD_NOTIMPL;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user