summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2019-12-16 17:33:14 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2019-12-16 17:33:14 +0000
commit4b1f4a6c567f74981a3419360c74e0b380c91b38 (patch)
treea6c44c62d5feff72a826f7d8fcf329e8299b007c /usr.sbin
parent3a0dbe793866d69b3e711f6b613b85a66a05a42f (diff)
disable IP_RECVTOS below try_proto() also
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bind/lib/isc/unix/net.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bind/lib/isc/unix/net.c b/usr.sbin/bind/lib/isc/unix/net.c
index 2f8549f4b15..24c70380792 100644
--- a/usr.sbin/bind/lib/isc/unix/net.c
+++ b/usr.sbin/bind/lib/isc/unix/net.c
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: net.c,v 1.3 2019/12/16 16:16:27 deraadt Exp $ */
+/* $Id: net.c,v 1.4 2019/12/16 17:33:13 deraadt Exp $ */
#include <config.h>
@@ -667,7 +667,7 @@ try_dscp_v4(void) {
if (setsockopt(s, IPPROTO_IP, IP_TOS, &dscp, sizeof(dscp)) == 0)
dscp_result |= ISC_NET_DSCPSETV4;
-#ifdef IP_RECVTOS
+#if 0 && defined(IP_RECVTOS)
on = 1;
if (setsockopt(s, IPPROTO_IP, IP_RECVTOS, &on, sizeof(on)) == 0)
dscp_result |= ISC_NET_DSCPRECVV4;