]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/resolve/resolved-def.h
Merge branch 'predictable-interface-names'
[thirdparty/systemd.git] / src / resolve / resolved-def.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 #include <inttypes.h>
5
6 #include "time-util.h"
7
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)
11 #define SD_RESOLVED_MDNS_IPV4 (UINT64_C(1) << 3)
12 #define SD_RESOLVED_MDNS_IPV6 (UINT64_C(1) << 4)
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)
17 #define SD_RESOLVED_AUTHENTICATED (UINT64_C(1) << 9)
18
19 #define SD_RESOLVED_LLMNR (SD_RESOLVED_LLMNR_IPV4|SD_RESOLVED_LLMNR_IPV6)
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)
23
24 #define SD_RESOLVED_QUERY_TIMEOUT_USEC (120 * USEC_PER_SEC)
25
26 /* 127.0.0.53 in native endian */
27 #define INADDR_DNS_STUB ((in_addr_t) 0x7f000035U)