Skip to content

Commit ab3fa69

Browse files
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 255 * Original commit: espressif/esp-idf@5cce919
1 parent c3a5826 commit ab3fa69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/mdns/mdns_networking.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ static esp_err_t _udp_pcb_main_init(void)
3838
_pcb_main = NULL;
3939
return ESP_ERR_INVALID_STATE;
4040
}
41-
_pcb_main->mcast_ttl = 1;
41+
_pcb_main->mcast_ttl = 255;
4242
_pcb_main->remote_port = MDNS_SERVICE_PORT;
4343
ip_addr_copy(_pcb_main->remote_ip, *(IP_ANY_TYPE));
4444
udp_recv(_pcb_main, &_udp_recv, _mdns_server);

0 commit comments

Comments
 (0)