From 7ccca052c023641a6b2504aedc210ea2e55b3596 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Mon, 29 Oct 2018 16:49:33 +1100 Subject: [PATCH] Only set IPV6_USE_MIN_MTU on IPv6. (cherry picked from commit 561b780ba08cd5f612b8412271dce4139c948784) --- CHANGES | 2 ++ lib/isc/unix/socket.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 5c2de34e00f..405e35b277c 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,5 @@ +5065. [bug] Only set IPV6_USE_MIN_MTU on IPv6. [GL #553] + 5064. [test] Initalize TZ environment variable before calling dns_test_begin in dnstap_test. [GL #624] diff --git a/lib/isc/unix/socket.c b/lib/isc/unix/socket.c index 4412c28446b..5b281d390ee 100644 --- a/lib/isc/unix/socket.c +++ b/lib/isc/unix/socket.c @@ -1573,7 +1573,7 @@ build_msghdr_send(isc__socket_t *sock, char* cmsgbuf, isc_socketevent_t *dev, #endif #if defined(IPV6_USE_MIN_MTU) - if ((sock->type == isc_sockettype_udp) && + if ((sock->type == isc_sockettype_udp) && (sock->pf == AF_INET6) && ((dev->attributes & ISC_SOCKEVENTATTR_USEMINMTU) != 0)) { int use_min_mtu = 1; /* -1, 0, 1 */ -- GitLab