Use MCAST_PORT define for port 5353
authorRafał Miłecki <rafal@milecki.pl>
Mon, 20 Mar 2017 16:05:42 +0000 (17:05 +0100)
committerRafał Miłecki <rafal@milecki.pl>
Mon, 20 Mar 2017 16:05:42 +0000 (17:05 +0100)
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
dns.c

diff --git a/dns.c b/dns.c
index 2e8b0ba0a3da483e9b7a0f6c04d442b6aa7434b5..b19ad17719b7e542a29011e1c68017e2fb0bb146 100644 (file)
--- 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;