2001-02-05 18:46:11 +00:00
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/param.h>
|
2003-11-06 20:47:59 +00:00
|
|
|
#ifndef __MINGW32__
|
2001-02-05 18:46:11 +00:00
|
|
|
#include <sys/socket.h>
|
|
|
|
#include <netinet/in.h>
|
2003-11-06 20:47:59 +00:00
|
|
|
#endif
|
|
|
|
#include "windoze.h"
|
2001-02-05 18:46:11 +00:00
|
|
|
#include "socket.h"
|
|
|
|
#include "haveip6.h"
|
|
|
|
|
|
|
|
int socket_mcloop6(int s,char loop)
|
|
|
|
{
|
|
|
|
#ifdef LIBC_HAS_IP6
|
|
|
|
if (noipv6)
|
2003-11-06 20:47:59 +00:00
|
|
|
return winsock2errno(setsockopt(s,IPPROTO_IP,IP_MULTICAST_LOOP,&loop,sizeof loop));
|
2001-02-05 18:46:11 +00:00
|
|
|
else
|
2003-11-06 20:47:59 +00:00
|
|
|
return winsock2errno(setsockopt(s,IPPROTO_IPV6,IPV6_MULTICAST_LOOP,&loop,sizeof loop));
|
2001-02-05 18:46:11 +00:00
|
|
|
#else
|
2003-11-06 20:47:59 +00:00
|
|
|
return winsock2errno(setsockopt(s,IPPROTO_IP,IP_MULTICAST_LOOP,&loop,sizeof loop));
|
2001-02-05 18:46:11 +00:00
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|