ecore_con: fix typo preventing IPv6 multicast to work.
authorCedric BAIL <cedric@osg.samsung.com>
Mon, 28 Dec 2015 22:01:15 +0000 (14:01 -0800)
committerCedric BAIL <cedric@osg.samsung.com>
Mon, 28 Dec 2015 22:01:15 +0000 (14:01 -0800)
Thanks Vincent Torri for spotting it.

src/lib/ecore_con/ecore_con.c

index 5a2736f..991d8c6 100644 (file)
@@ -1751,7 +1751,7 @@ _ecore_con_cb_udp_listen(void *data,
                             &mreq6.ipv6mr_multiaddr))
                goto error;
              mreq6.ipv6mr_interface = htonl(INADDR_ANY);
-             if (setsockopt(svr->fd, IPPROTO_IP, IP_ADD_MEMBERSHIP,
+             if (setsockopt(svr->fd, IPPROTO_IPV6, IPV6_ADD_MEMBERSHIP,
                             (const void *)&mreq6, sizeof(mreq6)) != 0)
                goto error;
           }