summaryrefslogtreecommitdiffstats
path: root/include/resolv.h
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2019-01-14 06:23:06 +0000
committerotto <otto@openbsd.org>2019-01-14 06:23:06 +0000
commit3d657e16d4d71195b8092bf2a9972efebcf11303 (patch)
tree27d82ec1c1579a414b4fcdd39f49d35d03234eca /include/resolv.h
parentMake apply_ignore_list(), set_default_hostname(), (diff)
downloadwireguard-openbsd-3d657e16d4d71195b8092bf2a9972efebcf11303.tar.xz
wireguard-openbsd-3d657e16d4d71195b8092bf2a9972efebcf11303.zip
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@
Diffstat (limited to 'include/resolv.h')
-rw-r--r--include/resolv.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/resolv.h b/include/resolv.h
index ba38c70968f..fb02483871e 100644
--- a/include/resolv.h
+++ b/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)