set multicast for eth interfaces
This commit is contained in:
parent
ebbabad7fb
commit
446d9a89f5
|
@ -2281,7 +2281,8 @@ sigar_net_interface_config_get(sigar_t *sigar,
|
||||||
inet_addr(addr));
|
inet_addr(addr));
|
||||||
|
|
||||||
if (ifr->dwType == MIB_IF_TYPE_ETHERNET) {
|
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,
|
sigar_net_address_set(ifconfig->broadcast,
|
||||||
iaddr | 0xFF000000);
|
iaddr | 0xFF000000);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue