ecore_con: fix typo preventing IPv6 multicast to work.

Thanks Vincent Torri for spotting it.
This commit is contained in:
Cedric BAIL 2015-12-28 14:01:15 -08:00
parent c94289d0b2
commit 1a9e42d124
1 changed files with 1 additions and 1 deletions

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