diff options
author | Daniel Mack <daniel@zonque.org> | 2015-07-11 02:44:46 +0200 |
---|---|---|
committer | Daniel Mack <daniel@zonque.org> | 2015-12-08 16:41:45 +0100 |
commit | 4e5bf5e15899de3f9d11c2ddfe9721d9f8b07a37 (patch) | |
tree | 910ca3de1b0d59411ce0e5bdbce665dbff6a6510 /src/resolve/resolved-dns-packet.h | |
parent | resolved: add infrastructure for mDNS related sockets (diff) | |
download | systemd-4e5bf5e15899de3f9d11c2ddfe9721d9f8b07a37.tar.xz systemd-4e5bf5e15899de3f9d11c2ddfe9721d9f8b07a37.zip |
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-dns-packet.h')
-rw-r--r-- | src/resolve/resolved-dns-packet.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/resolve/resolved-dns-packet.h b/src/resolve/resolved-dns-packet.h index aa2823cfb9..1d275f8110 100644 --- a/src/resolve/resolved-dns-packet.h +++ b/src/resolve/resolved-dns-packet.h @@ -239,6 +239,9 @@ static inline uint64_t SD_RESOLVED_FLAGS_MAKE(DnsProtocol protocol, int family, case DNS_PROTOCOL_LLMNR: return f|(family == AF_INET6 ? SD_RESOLVED_LLMNR_IPV6 : SD_RESOLVED_LLMNR_IPV4); + case DNS_PROTOCOL_MDNS: + return family == AF_INET6 ? SD_RESOLVED_MDNS_IPV6 : SD_RESOLVED_MDNS_IPV4; + default: break; } |