]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/resolve/resolved-def.h
resolved: add comments for various query flags
[thirdparty/systemd.git] / src / resolve / resolved-def.h
CommitLineData
53e1b683 1/* SPDX-License-Identifier: LGPL-2.1+ */
51323288
LP
2#pragma once
3
e53c6e4a
LP
4#include <inttypes.h>
5
4cbfd62b
MCO
6#include "time-util.h"
7
dc194dce
LP
8/* Input + Output: The various protocols we can use */
9#define SD_RESOLVED_DNS (UINT64_C(1) << 0)
10#define SD_RESOLVED_LLMNR_IPV4 (UINT64_C(1) << 1)
11#define SD_RESOLVED_LLMNR_IPV6 (UINT64_C(1) << 2)
12#define SD_RESOLVED_MDNS_IPV4 (UINT64_C(1) << 3)
13#define SD_RESOLVED_MDNS_IPV6 (UINT64_C(1) << 4)
14
15/* Input: Don't follow CNAMEs/DNAMEs */
16#define SD_RESOLVED_NO_CNAME (UINT64_C(1) << 5)
17
18/* Input: When doing service (SRV) resolving, don't resolve associated mDNS-style TXT records */
19#define SD_RESOLVED_NO_TXT (UINT64_C(1) << 6)
20
21/* Input: When doing service (SRV) resolving, don't resolve A/AAA RR for included hostname */
22#define SD_RESOLVED_NO_ADDRESS (UINT64_C(1) << 7)
23
24/* Input: Don't apply search domain logic to request */
25#define SD_RESOLVED_NO_SEARCH (UINT64_C(1) << 8)
26
27/* Output: Result is authenticated */
28#define SD_RESOLVED_AUTHENTICATED (UINT64_C(1) << 9)
29
30#define SD_RESOLVED_LLMNR (SD_RESOLVED_LLMNR_IPV4|SD_RESOLVED_LLMNR_IPV6)
31#define SD_RESOLVED_MDNS (SD_RESOLVED_MDNS_IPV4|SD_RESOLVED_MDNS_IPV6)
32#define SD_RESOLVED_PROTOCOLS_ALL (SD_RESOLVED_MDNS|SD_RESOLVED_LLMNR|SD_RESOLVED_DNS)
4cbfd62b
MCO
33
34#define SD_RESOLVED_QUERY_TIMEOUT_USEC (120 * USEC_PER_SEC)