Module Name: src Committed By: martin Date: Thu Oct 25 18:22:31 UTC 2018
Modified Files: src/external/bsd/bind/dist/lib/isc/unix [netbsd-8]: socket.c Log Message: Apply patch, requested by he in ticket #1069: fix bind9 issue #589: BIND will on NetBSD fail to send replies over IPv4/UDP larger than 1432 bytes. To generate a diff of this commit: cvs rdiff -u -r1.20.6.2 -r1.20.6.3 \ src/external/bsd/bind/dist/lib/isc/unix/socket.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/bsd/bind/dist/lib/isc/unix/socket.c diff -u src/external/bsd/bind/dist/lib/isc/unix/socket.c:1.20.6.2 src/external/bsd/bind/dist/lib/isc/unix/socket.c:1.20.6.3 --- src/external/bsd/bind/dist/lib/isc/unix/socket.c:1.20.6.2 Mon Aug 13 12:05:25 2018 +++ src/external/bsd/bind/dist/lib/isc/unix/socket.c Thu Oct 25 18:22:31 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: socket.c,v 1.20.6.2 2018/08/13 12:05:25 martin Exp $ */ +/* $NetBSD: socket.c,v 1.20.6.3 2018/10/25 18:22:31 martin Exp $ */ /* * Copyright (C) 2004-2016 Internet Systems Consortium, Inc. ("ISC") @@ -1544,7 +1544,8 @@ build_msghdr_send(isc__socket_t *sock, i #if defined(IPV6_USE_MIN_MTU) if ((sock->type == isc_sockettype_udp) && - ((dev->attributes & ISC_SOCKEVENTATTR_USEMINMTU) != 0)) + ((dev->attributes & ISC_SOCKEVENTATTR_USEMINMTU) != 0) && + (sock->pf == AF_INET6)) { int use_min_mtu = 1; /* -1, 0, 1 */