mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/bind_dhcps_netif' into 'master'
fix(lwip/dhcp_server): Bind dhcps netif to avoid handling the dhcp packet from other netif See merge request espressif/esp-idf!30537
This commit is contained in:
commit
31253679d9
@ -1359,6 +1359,7 @@ err_t dhcps_start(dhcps_t *dhcps, struct netif *netif, ip4_addr_t ip)
|
||||
|
||||
dhcps->client_address_plus.addr = dhcps->dhcps_poll.start_ip.addr;
|
||||
|
||||
udp_bind_netif(dhcps->dhcps_pcb, dhcps->dhcps_netif);
|
||||
udp_bind(dhcps->dhcps_pcb, &netif->ip_addr, DHCPS_SERVER_PORT);
|
||||
udp_recv(dhcps->dhcps_pcb, handle_dhcp, dhcps);
|
||||
#if DHCPS_DEBUG
|
||||
|
Loading…
Reference in New Issue
Block a user