]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/resolve/resolved-def.h
resolved: show all answer flags when dumping answer
[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
b05f5ae7
LP
8#define SD_RESOLVED_DNS (UINT64_C(1) << 0)
9#define SD_RESOLVED_LLMNR_IPV4 (UINT64_C(1) << 1)
10#define SD_RESOLVED_LLMNR_IPV6 (UINT64_C(1) << 2)
4e5bf5e1
DM
11#define SD_RESOLVED_MDNS_IPV4 (UINT64_C(1) << 3)
12#define SD_RESOLVED_MDNS_IPV6 (UINT64_C(1) << 4)
b05f5ae7
LP
13#define SD_RESOLVED_NO_CNAME (UINT64_C(1) << 5)
14#define SD_RESOLVED_NO_TXT (UINT64_C(1) << 6)
15#define SD_RESOLVED_NO_ADDRESS (UINT64_C(1) << 7)
16#define SD_RESOLVED_NO_SEARCH (UINT64_C(1) << 8)
931851e8 17#define SD_RESOLVED_AUTHENTICATED (UINT64_C(1) << 9)
51323288 18
45ec7efb 19#define SD_RESOLVED_LLMNR (SD_RESOLVED_LLMNR_IPV4|SD_RESOLVED_LLMNR_IPV6)
4e5bf5e1
DM
20#define SD_RESOLVED_MDNS (SD_RESOLVED_MDNS_IPV4|SD_RESOLVED_MDNS_IPV6)
21
22#define SD_RESOLVED_PROTOCOLS_ALL (SD_RESOLVED_MDNS|SD_RESOLVED_LLMNR|SD_RESOLVED_DNS)
4cbfd62b
MCO
23
24#define SD_RESOLVED_QUERY_TIMEOUT_USEC (120 * USEC_PER_SEC)