]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/resolve/resolved-def.h
grypt-util: drop two emacs modelines
[thirdparty/systemd.git] / src / resolve / resolved-def.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 /***
5 Copyright 2014 Lennart Poettering
6 ***/
7
8 #include <inttypes.h>
9
10 #include "time-util.h"
11
12 #define SD_RESOLVED_DNS (UINT64_C(1) << 0)
13 #define SD_RESOLVED_LLMNR_IPV4 (UINT64_C(1) << 1)
14 #define SD_RESOLVED_LLMNR_IPV6 (UINT64_C(1) << 2)
15 #define SD_RESOLVED_MDNS_IPV4 (UINT64_C(1) << 3)
16 #define SD_RESOLVED_MDNS_IPV6 (UINT64_C(1) << 4)
17 #define SD_RESOLVED_NO_CNAME (UINT64_C(1) << 5)
18 #define SD_RESOLVED_NO_TXT (UINT64_C(1) << 6)
19 #define SD_RESOLVED_NO_ADDRESS (UINT64_C(1) << 7)
20 #define SD_RESOLVED_NO_SEARCH (UINT64_C(1) << 8)
21 #define SD_RESOLVED_AUTHENTICATED (UINT64_C(1) << 9)
22
23 #define SD_RESOLVED_LLMNR (SD_RESOLVED_LLMNR_IPV4|SD_RESOLVED_LLMNR_IPV6)
24 #define SD_RESOLVED_MDNS (SD_RESOLVED_MDNS_IPV4|SD_RESOLVED_MDNS_IPV6)
25
26 #define SD_RESOLVED_PROTOCOLS_ALL (SD_RESOLVED_MDNS|SD_RESOLVED_LLMNR|SD_RESOLVED_DNS)
27
28 #define SD_RESOLVED_QUERY_TIMEOUT_USEC (120 * USEC_PER_SEC)
29
30 /* 127.0.0.53 in native endian */
31 #define INADDR_DNS_STUB ((in_addr_t) 0x7f000035U)