From 26479b421a69922e8500491936e5f1aec1b4d588 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Sun, 5 Nov 2006 05:10:33 +0000 Subject: [PATCH] fix broadcast address --- src/os/win32/win32_sigar.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/os/win32/win32_sigar.c b/src/os/win32/win32_sigar.c index 4e3b23e5..e980c8e2 100644 --- a/src/os/win32/win32_sigar.c +++ b/src/os/win32/win32_sigar.c @@ -2359,8 +2359,9 @@ sigar_net_interface_config_get(sigar_t *sigar, sigar_net_address_set(ifconfig->netmask, ipaddr->dwMask); + /* wtf is up w/ dwBCastAddr? */ sigar_net_address_set(ifconfig->broadcast, - ipaddr->dwBCastAddr); + ipaddr->dwAddr|0xFF000000); } /* hack for MS_LOOPBACK_ADAPTER */