set multicast for eth interfaces

This commit is contained in:
Doug MacEachern 2006-11-03 22:13:15 +00:00
parent ebbabad7fb
commit 446d9a89f5
1 changed files with 2 additions and 1 deletions

View File

@ -2281,7 +2281,8 @@ sigar_net_interface_config_get(sigar_t *sigar,
inet_addr(addr));
if (ifr->dwType == MIB_IF_TYPE_ETHERNET) {
ifconfig->flags |= SIGAR_IFF_BROADCAST;
ifconfig->flags |=
SIGAR_IFF_BROADCAST|SIGAR_IFF_MULTICAST;
sigar_net_address_set(ifconfig->broadcast,
iaddr | 0xFF000000);
}