From: Rafał Miłecki Date: Mon, 20 Mar 2017 16:05:42 +0000 (+0100) Subject: Use MCAST_PORT define for port 5353 X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fmdnsd.git;a=commitdiff_plain;h=c725494833228cb6e60633ef191e850903158ae1 Use MCAST_PORT define for port 5353 Signed-off-by: Rafał Miłecki --- 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;