From dbaa11385aecd9a61a7a7b6c9b571a9418dfff35 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Sun, 8 May 2005 17:20:00 +0000 Subject: [PATCH] better defaults for udp remote addr:port (none) --- src/os/win32/win32_sigar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/os/win32/win32_sigar.c b/src/os/win32/win32_sigar.c index 8c911157..133d3de3 100644 --- a/src/os/win32/win32_sigar.c +++ b/src/os/win32/win32_sigar.c @@ -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;