Explorar el Código

Merge branch 'bugfix/ping_iface_v4.2' into 'release/v4.2'

lw ip: Fix ICMP Ping on specific iface (GitHub PR) (v4.2)

See merge request espressif/esp-idf!15146
David Čermák hace 4 años
padre
commit
017b30bcee
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      components/lwip/apps/ping/ping_sock.c

+ 1 - 1
components/lwip/apps/ping/ping_sock.c

@@ -262,7 +262,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;
         }