diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-02-18 01:29:43 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-02-18 03:48:07 +0900 |
commit | 94876904bbd7596c58e0a4a60efc0c1e74eb8e98 (patch) | |
tree | 64c982842362623d9ec64a816d3094faa076b1f7 /src/resolve/resolved-dns-scope.c | |
parent | 275468c033ab4a5da4c6a6d32baa3268b3f46d09 (diff) | |
download | systemd-94876904bbd7596c58e0a4a60efc0c1e74eb8e98.tar.gz |
tree-wide: use in_addr_is_set() or friends
Diffstat (limited to 'src/resolve/resolved-dns-scope.c')
-rw-r--r-- | src/resolve/resolved-dns-scope.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resolve/resolved-dns-scope.c b/src/resolve/resolved-dns-scope.c index 4495a93add..f1dff95a86 100644 --- a/src/resolve/resolved-dns-scope.c +++ b/src/resolve/resolved-dns-scope.c @@ -920,10 +920,10 @@ void dns_scope_process_query(DnsScope *s, DnsStream *stream, DnsPacket *p) { * the LLMNR multicast addresses. See RFC 4795, * section 2.5. */ - if (p->family == AF_INET && !in_addr_equal(AF_INET, &p->destination, (union in_addr_union*) &LLMNR_MULTICAST_IPV4_ADDRESS)) + if (p->family == AF_INET && !in4_addr_equal(&p->destination.in, &LLMNR_MULTICAST_IPV4_ADDRESS)) return; - if (p->family == AF_INET6 && !in_addr_equal(AF_INET6, &p->destination, (union in_addr_union*) &LLMNR_MULTICAST_IPV6_ADDRESS)) + if (p->family == AF_INET6 && !in6_addr_equal(&p->destination.in6, &LLMNR_MULTICAST_IPV6_ADDRESS)) return; } |