From c725494833228cb6e60633ef191e850903158ae1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C5=82=20Mi=C5=82ecki?= Date: Mon, 20 Mar 2017 17:05:42 +0100 Subject: [PATCH] Use MCAST_PORT define for port 5353 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Rafał Miłecki --- dns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dns.c b/dns.c index 2e8b0ba..b19ad17 100644 --- a/dns.c +++ b/dns.c @@ -413,7 +413,7 @@ dns_handle_packet(struct interface *iface, struct sockaddr *s, uint16_t port, ui return; } - if (h->questions && !iface->multicast && port != 5353) + if (h->questions && !iface->multicast && port != MCAST_PORT) /* silently drop unicast questions that dont originate from port 5353 */ return; -- 2.11.0