Commit 561b780b authored by Mark Andrews's avatar Mark Andrews
Browse files

Only set IPV6_USE_MIN_MTU on IPv6.

parent 1454665d
Pipeline #5857 passed with stages
in 13 minutes and 16 seconds
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]
 
......
......@@ -1291,7 +1291,7 @@ build_msghdr_send(isc__socket_t *sock, char* cmsgbuf, isc_socketevent_t *dev,
}
#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 */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment