Skip to content

Commit

Permalink
udp: remove HAVE_INET6
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers committed Jul 23, 2024
1 parent 4dae988 commit 31d2786
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions src/udp/mcast.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ static int multicast_update(struct udp_sock *us, const struct sa *group,
bool join)
{
struct ip_mreq mreq;
#ifdef HAVE_INET6
struct ipv6_mreq mreq6;
#endif
int err;

if (!us || !group)
Expand All @@ -34,7 +32,6 @@ static int multicast_update(struct udp_sock *us, const struct sa *group,
&mreq, sizeof(mreq));
break;

#ifdef HAVE_INET6
case AF_INET6:
mreq6.ipv6mr_multiaddr = group->u.in6.sin6_addr;
mreq6.ipv6mr_interface = sa_scopeid(group);
Expand All @@ -45,7 +42,6 @@ static int multicast_update(struct udp_sock *us, const struct sa *group,
: IPV6_LEAVE_GROUP,
&mreq6, sizeof(mreq6));
break;
#endif

default:
return EAFNOSUPPORT;
Expand Down
4 changes: 0 additions & 4 deletions src/udp/udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -285,11 +285,7 @@ int udp_listen(struct udp_sock **usp, const struct sa *local,
(void)re_snprintf(serv, sizeof(serv), "%u", sa_port(local));
}
else {
#ifdef HAVE_INET6
af = AF_UNSPEC;
#else
af = AF_INET;
#endif
}

memset(&hints, 0, sizeof(hints));
Expand Down

0 comments on commit 31d2786

Please sign in to comment.