mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-02-12 16:51:53 +00:00
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:
parent
a2b1901000
commit
a095a6f21d
1 changed files with 2 additions and 2 deletions
|
@ -45,7 +45,7 @@ int setup_multicast_socket(const char *_multicast_ip, unsigned short _multicast_
|
||||||
}
|
}
|
||||||
|
|
||||||
// allow broadcast
|
// allow broadcast
|
||||||
loop = 1;
|
loop = 0;
|
||||||
if (setsockopt(sock,
|
if (setsockopt(sock,
|
||||||
IPPROTO_IP,
|
IPPROTO_IP,
|
||||||
IP_MULTICAST_LOOP,
|
IP_MULTICAST_LOOP,
|
||||||
|
@ -85,4 +85,4 @@ int remove_multicast_socket(int socket) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue