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'
This commit is contained in:
Luca Passarella 2022-12-13 20:01:22 +01:00 committed by Nick Hainke
parent a2b1901000
commit a095a6f21d

View file

@ -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;
}
}