mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-04 21:44:38 +08:00
mDNS: ignore responses with src port != 5353 (rfc6762 section 6)
This commit is contained in:
parent
16da67bb21
commit
65eb36b10d
@ -1083,6 +1083,12 @@ mdns_handle_response(struct mdns_packet *pkt, struct netif *netif)
|
|||||||
{
|
{
|
||||||
struct mdns_host* mdns = NETIF_TO_HOST(netif);
|
struct mdns_host* mdns = NETIF_TO_HOST(netif);
|
||||||
|
|
||||||
|
/* Ignore responses with a source port different from 5353
|
||||||
|
* (LWIP_IANA_PORT_MDNS) -> RFC6762 section 6 */
|
||||||
|
if (pkt->source_port != LWIP_IANA_PORT_MDNS) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/* Ignore all questions */
|
/* Ignore all questions */
|
||||||
while (pkt->questions_left) {
|
while (pkt->questions_left) {
|
||||||
struct mdns_question q;
|
struct mdns_question q;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user