From 2393c3e3061884fe903313581faf36f438ae4ca9 Mon Sep 17 00:00:00 2001 From: otto <> Date: Mon, 14 Jan 2019 06:23:06 +0000 Subject: [PATCH] There are cases where a program doing dns requests wants to set the Checking Disabled flag. Introduce a RES flag to do so. ok krw@ deraadt@ eric@ --- src/include/resolv.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/include/resolv.h b/src/include/resolv.h index ba38c709..fb024838 100644 --- a/src/include/resolv.h +++ b/src/include/resolv.h @@ -1,4 +1,4 @@ -/* $OpenBSD: resolv.h,v 1.21 2016/09/12 19:35:31 guenther Exp $ */ +/* $OpenBSD: resolv.h,v 1.22 2019/01/14 06:23:06 otto Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -190,6 +190,7 @@ struct __res_state_ext { #define RES_USE_EDNS0 0x40000000 /* use EDNS0 */ /* DNSSEC extensions: use higher bit to avoid conflict with ISC use */ #define RES_USE_DNSSEC 0x20000000 /* use DNSSEC using OK bit in OPT */ +#define RES_USE_CD 0x10000000 /* set Checking Disabled flag */ #define RES_DEFAULT (RES_RECURSE | RES_DEFNAMES | RES_DNSRCH)