From a095a6f21df729f0ce9c376cc1885d39ddf9b5d2 Mon Sep 17 00:00:00 2001 From: Luca Passarella Date: Tue, 13 Dec 2022 20:01:22 +0100 Subject: [PATCH] IP_MULTICAST_LOOP should be set to false/0 If IP_MULTICAST_LOOP is left to true/1 the dawn instance will send the packet out and then receive it itself, this will generate a 'Remote PROBE updated client / BSSID = XX:XX:XX:XX:XX:XX / YY:YY:YY:YY:YY:YY' after every 'Local PROBE used to update client / BSSID = XX:XX:XX:XX:XX:XX / YY:YY:YY:YY:YY:YY' --- src/network/multicastsocket.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/network/multicastsocket.c b/src/network/multicastsocket.c index b1f60bb..1ced7a4 100644 --- a/src/network/multicastsocket.c +++ b/src/network/multicastsocket.c @@ -45,7 +45,7 @@ int setup_multicast_socket(const char *_multicast_ip, unsigned short _multicast_ } // allow broadcast - loop = 1; + loop = 0; if (setsockopt(sock, IPPROTO_IP, IP_MULTICAST_LOOP, @@ -85,4 +85,4 @@ int remove_multicast_socket(int socket) { return -1; } return 0; -} \ No newline at end of file +}