mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/ping_iface' into 'master'
lw ip: Fix ICMP Ping on specific iface (GitHub PR) Closes IDFGH-5676 See merge request espressif/esp-idf!14840
This commit is contained in:
commit
406d1728f5
@ -275,7 +275,7 @@ esp_err_t esp_ping_new_session(const esp_ping_config_t *config, const esp_ping_c
|
||||
ESP_LOGE(TAG, "fail to find interface name with netif index %d", config->interface);
|
||||
goto err;
|
||||
}
|
||||
if(setsockopt(ep->sock, SOL_SOCKET, SO_BINDTODEVICE, &iface, sizeof(iface) !=0)) {
|
||||
if(setsockopt(ep->sock, SOL_SOCKET, SO_BINDTODEVICE, &iface, sizeof(iface)) != 0) {
|
||||
ESP_LOGE(TAG, "fail to setsockopt SO_BINDTODEVICE");
|
||||
goto err;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user