better defaults for udp remote addr:port (none)

This commit is contained in:
Doug MacEachern 2005-05-08 17:20:00 +00:00
parent 6e8e15e4e5
commit dbaa11385a
1 changed files with 2 additions and 2 deletions

View File

@ -2141,7 +2141,7 @@ static int net_conn_get_udp(sigar_t *sigar,
}
conn.local_port = htons((WORD)udp->table[i].dwLocalPort);
conn.remote_port = conn.local_port;
conn.remote_port = 0;
conn.type = SIGAR_NETCONN_UDP;
@ -2151,7 +2151,7 @@ static int net_conn_get_udp(sigar_t *sigar,
ip_format(conn.remote_address,
sizeof(conn.remote_address),
udp->table[i].dwLocalAddr);
0);
conn.send_queue = conn.receive_queue = SIGAR_FIELD_NOTIMPL;