summaryrefslogtreecommitdiff
path: root/src/resolve/resolved-dns-transaction.c
diff options
context:
space:
mode:
authorDaniel Mack <daniel@zonque.org>2015-07-10 15:28:09 -0400
committerDaniel Mack <daniel@zonque.org>2015-07-13 11:28:29 -0400
commit22a37591ede1e9d5f325d6f10495cc91b40b775f (patch)
treeb104fe9ca3a35d17acdcffc7444aadcdc1d87606 /src/resolve/resolved-dns-transaction.c
parent5f402ae84bbc08fe8de5682e371b3f66c387da52 (diff)
resolved: use a #define for LLMNR port
De-duplicate some magic numbers.
Diffstat (limited to 'src/resolve/resolved-dns-transaction.c')
-rw-r--r--src/resolve/resolved-dns-transaction.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/resolve/resolved-dns-transaction.c b/src/resolve/resolved-dns-transaction.c
index 214938986d..21247e8a0b 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;