fix broadcast address

This commit is contained in:
Doug MacEachern 2006-11-05 05:10:33 +00:00
parent e8302a72f3
commit 26479b421a
1 changed files with 2 additions and 1 deletions

View File

@ -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 */