summaryrefslogtreecommitdiff
path: root/src/resolve/resolved-def.h
diff options
context:
space:
mode:
authorDaniel Mack <daniel@zonque.org>2015-07-10 20:44:46 -0400
committerDaniel Mack <daniel@zonque.org>2015-12-08 16:41:45 +0100
commit4e5bf5e15899de3f9d11c2ddfe9721d9f8b07a37 (patch)
tree910ca3de1b0d59411ce0e5bdbce665dbff6a6510 /src/resolve/resolved-def.h
parentbc7702b098b63031767174206f5df14a8ccb45cf (diff)
resolved: add packet header details for mDNS
Validate mDNS queries and responses by looking at some header fields, add mDNS flags.
Diffstat (limited to 'src/resolve/resolved-def.h')
-rw-r--r--src/resolve/resolved-def.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/resolve/resolved-def.h b/src/resolve/resolved-def.h
index db5ee57b51..6014d345f3 100644
--- a/src/resolve/resolved-def.h
+++ b/src/resolve/resolved-def.h
@@ -24,6 +24,8 @@
#define SD_RESOLVED_DNS (UINT64_C(1) << 0)
#define SD_RESOLVED_LLMNR_IPV4 (UINT64_C(1) << 1)
#define SD_RESOLVED_LLMNR_IPV6 (UINT64_C(1) << 2)
+#define SD_RESOLVED_MDNS_IPV4 (UINT64_C(1) << 3)
+#define SD_RESOLVED_MDNS_IPV6 (UINT64_C(1) << 4)
#define SD_RESOLVED_NO_CNAME (UINT64_C(1) << 5)
#define SD_RESOLVED_NO_TXT (UINT64_C(1) << 6)
#define SD_RESOLVED_NO_ADDRESS (UINT64_C(1) << 7)
@@ -31,4 +33,6 @@
#define SD_RESOLVED_AUTHENTICATED (UINT64_C(1) << 9)
#define SD_RESOLVED_LLMNR (SD_RESOLVED_LLMNR_IPV4|SD_RESOLVED_LLMNR_IPV6)
-#define SD_RESOLVED_PROTOCOLS_ALL (SD_RESOLVED_LLMNR|SD_RESOLVED_DNS)
+#define SD_RESOLVED_MDNS (SD_RESOLVED_MDNS_IPV4|SD_RESOLVED_MDNS_IPV6)
+
+#define SD_RESOLVED_PROTOCOLS_ALL (SD_RESOLVED_MDNS|SD_RESOLVED_LLMNR|SD_RESOLVED_DNS)