Set the correct bit for a reply, listen on br0 again
authorKai Blin <kai@samba.org>
Mon, 16 May 2011 05:33:29 +0000 (07:33 +0200)
committerKai Blin <kai@samba.org>
Mon, 16 May 2011 05:33:29 +0000 (07:33 +0200)
listener.c

index 6a75182..2165566 100644 (file)
@@ -37,7 +37,7 @@ int main(int argc, char **argv)
         fprintf(stderr, "failed to convert ff02::1:3 to an address\n");
         goto die;
     }
-    mreq.ipv6mr_interface = if_nametoindex("wlan0");
+    mreq.ipv6mr_interface = if_nametoindex("br0");
 
     err = setsockopt(sock6, IPPROTO_IPV6, IPV6_JOIN_GROUP, &mreq,
                      sizeof(struct ipv6_mreq));
@@ -66,7 +66,7 @@ int main(int argc, char **argv)
             continue;
         }
 
-        buf[2] |= 0x10; /* We're a reply, honest! */
+        buf[2] |= 0x80; /* We're a reply, honest! */
 
         err = getnameinfo((struct sockaddr *)&peer_addr, peer_addr_len,
                           host, NI_MAXHOST, service, NI_MAXSERV, NI_NUMERICSERV);