Skip to content
Snippets Groups Projects
Unverified Commit a5614a50 authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

gluon-neighbour-info: fix outgoing interface for non-link-local multicast addresses

parent e9e1e2d1
No related branches found
No related tags found
No related merge requests found
......@@ -220,6 +220,16 @@ int main(int argc, char **argv) {
exit(EXIT_FAILURE);
}
if (client_addr.sin6_scope_id) {
if (setsockopt(
sock, IPPROTO_IPV6, IPV6_MULTICAST_IF,
&client_addr.sin6_scope_id, sizeof(client_addr.sin6_scope_id)
) < 0) {
perror("setsockopt");
exit(EXIT_FAILURE);
}
}
if (sse) {
fputs("Content-Type: text/event-stream\n\n", stdout);
fflush(stdout);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment