mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
Only set IPV6_USE_MIN_MTU on IPv6.
This commit is contained in:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user