Skip to content

Commit 43c2aad

Browse files
committed
udp: remove HAVE_INET6
1 parent d059205 commit 43c2aad

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

src/udp/mcast.c

-4
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ static int multicast_update(struct udp_sock *us, const struct sa *group,
1313
bool join)
1414
{
1515
struct ip_mreq mreq;
16-
#ifdef HAVE_INET6
1716
struct ipv6_mreq mreq6;
18-
#endif
1917
int err;
2018

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

37-
#ifdef HAVE_INET6
3835
case AF_INET6:
3936
mreq6.ipv6mr_multiaddr = group->u.in6.sin6_addr;
4037
mreq6.ipv6mr_interface = sa_scopeid(group);
@@ -45,7 +42,6 @@ static int multicast_update(struct udp_sock *us, const struct sa *group,
4542
: IPV6_LEAVE_GROUP,
4643
&mreq6, sizeof(mreq6));
4744
break;
48-
#endif
4945

5046
default:
5147
return EAFNOSUPPORT;

src/udp/udp.c

-4
Original file line numberDiff line numberDiff line change
@@ -285,11 +285,7 @@ int udp_listen(struct udp_sock **usp, const struct sa *local,
285285
(void)re_snprintf(serv, sizeof(serv), "%u", sa_port(local));
286286
}
287287
else {
288-
#ifdef HAVE_INET6
289288
af = AF_UNSPEC;
290-
#else
291-
af = AF_INET;
292-
#endif
293289
}
294290

295291
memset(&hints, 0, sizeof(hints));

0 commit comments

Comments
 (0)