udp: drop IPV6_SSM_SUPPORT macro
All the supported platforms support specific source multicast. PR-URL: https://github.com/libuv/libuv/pull/2202 Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
This commit is contained in:
parent
288ec700e4
commit
9efc1961fe
11
include/uv.h
11
include/uv.h
@ -364,17 +364,6 @@ typedef void (*uv_fs_poll_cb)(uv_fs_poll_t* handle,
|
||||
|
||||
typedef void (*uv_signal_cb)(uv_signal_t* handle, int signum);
|
||||
|
||||
#if defined(MCAST_JOIN_SOURCE_GROUP) && defined(MCAST_LEAVE_SOURCE_GROUP)
|
||||
# ifndef IPV6_SSM_SUPPORT
|
||||
# define IPV6_SSM_SUPPORT
|
||||
# endif
|
||||
# ifndef IPV6_ADD_SOURCE_MEMBERSHIP
|
||||
# define IPV6_ADD_SOURCE_MEMBERSHIP MCAST_JOIN_SOURCE_GROUP
|
||||
# endif
|
||||
# ifndef IPV6_DROP_SOURCE_MEMBERSHIP
|
||||
# define IPV6_DROP_SOURCE_MEMBERSHIP MCAST_LEAVE_SOURCE_GROUP
|
||||
# endif
|
||||
#endif
|
||||
|
||||
typedef enum {
|
||||
UV_LEAVE_GROUP = 0,
|
||||
|
||||
@ -709,7 +709,6 @@ static int uv__udp_set_source_membership6(uv_udp_t* handle,
|
||||
const char* interface_addr,
|
||||
const struct sockaddr_in6* source_addr,
|
||||
uv_membership membership) {
|
||||
#ifdef IPV6_SSM_SUPPORT
|
||||
struct group_source_req mreq;
|
||||
struct sockaddr_in6 addr6;
|
||||
int optname;
|
||||
@ -747,9 +746,6 @@ static int uv__udp_set_source_membership6(uv_udp_t* handle,
|
||||
}
|
||||
|
||||
return 0;
|
||||
#else
|
||||
return UV_EPROTONOSUPPORT;
|
||||
#endif /* IPV6_SSM_SUPPORT */
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -759,7 +759,6 @@ int uv__udp_set_source_membership6(uv_udp_t* handle,
|
||||
const char* interface_addr,
|
||||
const struct sockaddr_in6* source_addr,
|
||||
uv_membership membership) {
|
||||
#ifdef IPV6_SSM_SUPPORT
|
||||
struct group_source_req mreq;
|
||||
struct sockaddr_in6 addr6;
|
||||
int optname;
|
||||
@ -804,9 +803,6 @@ int uv__udp_set_source_membership6(uv_udp_t* handle,
|
||||
}
|
||||
|
||||
return 0;
|
||||
#else
|
||||
return UV_EPROTONOSUPPORT;
|
||||
#endif /* IPV6_SSM_SUPPORT */
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user