diff options
author | Tom Gundersen <teg@jklm.no> | 2015-07-13 19:30:30 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2015-07-13 19:30:30 +0200 |
commit | ff89f8b917a83a3fc0dc3ad0961c3bc953f78e8f (patch) | |
tree | b9c37a7459ba87b7e771eb41367899491e672932 /src/resolve/resolved-dns-transaction.c | |
parent | f7c735017e97652f8ed76af2298bea23a80ac762 (diff) | |
parent | 818ef443f0281acd952878cdb01cbdaa42195912 (diff) |
Merge pull request #576 from zonque/resolved-cleanups
resolved: assorted cleanups
Diffstat (limited to 'src/resolve/resolved-dns-transaction.c')
-rw-r--r-- | src/resolve/resolved-dns-transaction.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/resolve/resolved-dns-transaction.c b/src/resolve/resolved-dns-transaction.c index 214938986d..3f4673df7a 100644 --- a/src/resolve/resolved-dns-transaction.c +++ b/src/resolve/resolved-dns-transaction.c @@ -21,6 +21,7 @@ #include "af-list.h" +#include "resolved-llmnr.h" #include "resolved-dns-transaction.h" #include "random-util.h" @@ -264,7 +265,7 @@ static int dns_transaction_open_tcp(DnsTransaction *t) { if (r == 0) return -EINVAL; - fd = dns_scope_tcp_socket(t->scope, family, &address, 5355); + fd = dns_scope_tcp_socket(t->scope, family, &address, LLMNR_PORT); } } else return -EAFNOSUPPORT; @@ -323,7 +324,7 @@ void dns_transaction_process_reply(DnsTransaction *t, DnsPacket *p) { /* Tentative packets are not full responses but still * useful for identifying uniqueness conflicts during * probing. */ - if (DNS_PACKET_T(p)) { + if (DNS_PACKET_LLMNR_T(p)) { dns_transaction_tentative(t, p); return; } |