From 3984a473244fa7640ca2a8b804646a1ca22d4943 Mon Sep 17 00:00:00 2001 From: Michael Zillgith Date: Thu, 18 Feb 2021 15:59:34 +0100 Subject: [PATCH] - Linux - Ethernet: replace IFF_PROMISC by IFF_ALLMULTI --- hal/ethernet/linux/ethernet_linux.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hal/ethernet/linux/ethernet_linux.c b/hal/ethernet/linux/ethernet_linux.c index 728b5d10..3555c66a 100644 --- a/hal/ethernet/linux/ethernet_linux.c +++ b/hal/ethernet/linux/ethernet_linux.c @@ -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)