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