Skip to content

Commit

Permalink
udp: drop IPV6_SSM_SUPPORT macro
Browse files Browse the repository at this point in the history
All the supported platforms support specific source multicast.

PR-URL: #2202
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
  • Loading branch information
santigimeno committed Aug 23, 2019
1 parent 288ec70 commit 9efc196
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 19 deletions.
11 changes: 0 additions & 11 deletions include/uv.h
Expand Up @@ -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,
Expand Down
4 changes: 0 additions & 4 deletions src/unix/udp.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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 */
}


Expand Down
4 changes: 0 additions & 4 deletions src/win/udp.c
Expand Up @@ -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;
Expand Down Expand Up @@ -804,9 +803,6 @@ int uv__udp_set_source_membership6(uv_udp_t* handle,
}

return 0;
#else
return UV_EPROTONOSUPPORT;
#endif /* IPV6_SSM_SUPPORT */
}


Expand Down

0 comments on commit 9efc196

Please sign in to comment.