kopia lustrzana https://github.com/espressif/esp-idf
mdns: Fixed the ip header TTL to be correctly set to 255
Defined in https://tools.ietf.org/html/rfc6762#section-11: All Multicast DNS responses (including responses sent via unicast) SHOULD be sent with IP TTL set to 255pull/6882/head
rodzic
34049454df
commit
5cce919cbe
|
@ -38,7 +38,7 @@ static esp_err_t _udp_pcb_main_init(void)
|
||||||
_pcb_main = NULL;
|
_pcb_main = NULL;
|
||||||
return ESP_ERR_INVALID_STATE;
|
return ESP_ERR_INVALID_STATE;
|
||||||
}
|
}
|
||||||
_pcb_main->mcast_ttl = 1;
|
_pcb_main->mcast_ttl = 255;
|
||||||
_pcb_main->remote_port = MDNS_SERVICE_PORT;
|
_pcb_main->remote_port = MDNS_SERVICE_PORT;
|
||||||
ip_addr_copy(_pcb_main->remote_ip, *(IP_ANY_TYPE));
|
ip_addr_copy(_pcb_main->remote_ip, *(IP_ANY_TYPE));
|
||||||
udp_recv(_pcb_main, &_udp_recv, _mdns_server);
|
udp_recv(_pcb_main, &_udp_recv, _mdns_server);
|
||||||
|
|
Ładowanie…
Reference in New Issue