- Linux - Ethernet: replace IFF_PROMISC by IFF_ALLMULTI

pull/331/head
Michael Zillgith 5 years ago
parent 5afa1310f3
commit 3984a47324

@ -142,7 +142,8 @@ getInterfaceIndex(int sock, const char* deviceName)
return -1;
}
ifr.ifr_flags |= IFF_PROMISC;
/* replace IFF_ALLMULTI by IFF_PROMISC to also receive unicast messages for other nodes */
ifr.ifr_flags |= IFF_ALLMULTI;
if (ioctl (sock, SIOCSIFFLAGS, &ifr) == -1)
{
if (DEBUG_SOCKET)

Loading…
Cancel
Save