store net_connection addresses in binary rather than string
This commit is contained in:
1 parent
e4303ee612
commit
b6950ca519
2 files changed
+11
-12
No files matched your search
@@ -2054,10 +2054,12 @@ static int net_conn_get_tcp(sigar_net_connection_walker_t *walker)
|
||||
|
||||
conn.type = SIGAR_NETCONN_TCP;
|
||||
|
||||
sigar_inet_ntoa(sigar, pcb.inp_laddr.s_addr,
|
||||
conn.local_address);
|
||||
sigar_inet_ntoa(sigar, pcb.inp_faddr.s_addr,
|
||||
conn.remote_address);
|
||||
sigar_net_address_set(conn.local_address,
|
||||
pcb.inp_laddr.s_addr);
|
||||
|
||||
sigar_net_address_set(conn.remote_address,
|
||||
pcb.inp_faddr.s_addr);
|
||||
|
||||
conn.local_port = ntohs(pcb.inp_lport);
|
||||
conn.remote_port = ntohs(pcb.inp_fport);
|
||||
|
||||
|
||||
Reference in new issue
Block a user