Home
last modified time | relevance | path

Searched refs:if_name (Results 1 – 10 of 10) sorted by relevance

/hal_espressif-3.5.0/components/tcp_transport/
Dtransport_ssl.c420 void esp_transport_ssl_set_interface_name(esp_transport_handle_t t, struct ifreq *if_name) in esp_transport_ssl_set_interface_name() argument
423 ssl->cfg.if_name = if_name; in esp_transport_ssl_set_interface_name()
470 void esp_transport_tcp_set_interface_name(esp_transport_handle_t t, struct ifreq *if_name) in esp_transport_tcp_set_interface_name() argument
472 return esp_transport_ssl_set_interface_name(t, if_name); in esp_transport_tcp_set_interface_name()
/hal_espressif-3.5.0/components/esp_websocket_client/
Desp_websocket_client.c124 struct ifreq *if_name; member
320 if (config->if_name) { in esp_websocket_client_init()
321 client->if_name = calloc(1, sizeof(struct ifreq) + 1); in esp_websocket_client_init()
322 ESP_WS_CLIENT_MEM_CHECK(TAG, client->if_name, goto _websocket_init_fail); in esp_websocket_client_init()
323 memcpy(client->if_name, config->if_name, sizeof(struct ifreq)); in esp_websocket_client_init()
341 esp_transport_tcp_set_interface_name(tcp, client->if_name); in esp_websocket_client_init()
457 if (client->if_name) { in esp_websocket_client_destroy()
458 free(client->if_name); in esp_websocket_client_destroy()
/hal_espressif-3.5.0/components/esp-tls/
Desp_tls.c231 if (cfg->if_name) { in esp_tls_set_socket_options()
232 if (cfg->if_name->ifr_name[0] != 0) { in esp_tls_set_socket_options()
233 ESP_LOGD(TAG, "Bind [sock=%d] to interface %s", fd, cfg->if_name->ifr_name); in esp_tls_set_socket_options()
234 … if (setsockopt(fd, SOL_SOCKET, SO_BINDTODEVICE, cfg->if_name, sizeof(struct ifreq)) != 0) { in esp_tls_set_socket_options()
235 … ESP_LOGE(TAG, "Bind [sock=%d] to interface %s fail", fd, cfg->if_name->ifr_name); in esp_tls_set_socket_options()
Desp_tls.h182 …struct ifreq *if_name; /*!< The name of interface for data to go through. Use the… member
/hal_espressif-3.5.0/components/tcp_transport/include/
Desp_transport_tcp.h41 void esp_transport_tcp_set_interface_name(esp_transport_handle_t t, struct ifreq *if_name);
Desp_transport_ssl.h191 void esp_transport_ssl_set_interface_name(esp_transport_handle_t t, struct ifreq *if_name);
/hal_espressif-3.5.0/components/esp_http_client/
Desp_http_client.c119 struct ifreq *if_name; member
607 if (config->if_name) { in esp_http_client_init()
608 client->if_name = calloc(1, sizeof(struct ifreq) + 1); in esp_http_client_init()
609 HTTP_MEM_CHECK(TAG, client->if_name, goto error); in esp_http_client_init()
610 memcpy(client->if_name, config->if_name, sizeof(struct ifreq)); in esp_http_client_init()
611 esp_transport_tcp_set_interface_name(tcp, client->if_name); in esp_http_client_init()
788 if (client->if_name) { in esp_http_client_cleanup()
789 free(client->if_name); in esp_http_client_cleanup()
/hal_espressif-3.5.0/components/esp_websocket_client/include/
Desp_websocket_client.h104 …struct ifreq *if_name; /*!< The name of interface for data to go … member
/hal_espressif-3.5.0/examples/system/ota/simple_ota_example/main/
Dsimple_ota_example.c92 .if_name = &ifr, in simple_ota_example_task()
/hal_espressif-3.5.0/components/esp_http_client/include/
Desp_http_client.h138 …struct ifreq *if_name; /*!< The name of interface for data to go through… member