Home
last modified time | relevance | path

Searched refs:esp_netif (Results 1 – 25 of 33) sorted by relevance

12

/hal_espressif-3.7.0/components/esp_netif/loopback/
Desp_netif_loopback.c70 esp_netif_iodriver_handle esp_netif_get_io_driver(esp_netif_t *esp_netif) in esp_netif_get_io_driver() argument
72 return esp_netif->driver_handle; in esp_netif_get_io_driver()
80 void* esp_netif_get_netif_impl(esp_netif_t *esp_netif) in esp_netif_get_netif_impl() argument
110 static esp_err_t esp_netif_init_configuration(esp_netif_t *esp_netif, const esp_netif_config_t *cfg) in esp_netif_init_configuration() argument
118 memcpy(esp_netif->mac, cfg->base->mac, NETIF_MAX_HWADDR_LEN); in esp_netif_init_configuration()
120 esp_netif->ip_info->ip.addr = 0; in esp_netif_init_configuration()
121 esp_netif->ip_info->gw.addr = 0; in esp_netif_init_configuration()
122 esp_netif->ip_info->netmask.addr = 0; in esp_netif_init_configuration()
124 memcpy(esp_netif->ip_info, cfg->base->ip_info, sizeof(esp_netif_ip_info_t)); in esp_netif_init_configuration()
126 memcpy(esp_netif->ip_info_old, esp_netif->ip_info, sizeof(esp_netif_ip_info_t)); in esp_netif_init_configuration()
[all …]
/hal_espressif-3.7.0/components/esp_netif/lwip/
Desp_netif_lwip.c244 ESP_LOGD(TAG, "check: remote, if=%p fn=%p\n", msg->esp_netif, msg->api_fn); in esp_netif_lwip_ipc_call_msg()
254 ESP_LOGD(TAG, "check: local, if=%p fn=%p\n", msg->esp_netif, msg->api_fn); in esp_netif_lwip_ipc_call_msg()
261 .esp_netif = netif, in esp_netif_lwip_ipc_call()
310 static void esp_netif_set_default_netif_internal(esp_netif_t *esp_netif) in esp_netif_set_default_netif_internal() argument
312 if (ESP_NETIF_IS_POINT2POINT_TYPE(esp_netif, PPP_LWIP_NETIF)) { in esp_netif_set_default_netif_internal()
314 esp_netif_ppp_set_default_netif(esp_netif->netif_handle); in esp_netif_set_default_netif_internal()
317 netif_set_default(esp_netif->lwip_netif); in esp_netif_set_default_netif_internal()
328 esp_netif_t *esp_netif = msg->esp_netif; in esp_netif_update_default_netif_lwip() local
331 ESP_LOGD(TAG, "%s %p", __func__, esp_netif); in esp_netif_update_default_netif_lwip()
344 s_last_default_esp_netif = esp_netif; in esp_netif_update_default_netif_lwip()
[all …]
Desp_netif_lwip_ppp.c68 .esp_netif = netif, in on_ppp_status_changed()
226 netif_related_data_t * esp_netif_new_ppp(esp_netif_t *esp_netif, const esp_netif_netstack_config_t … in esp_netif_new_ppp() argument
228 struct netif * netif_impl = esp_netif->lwip_netif; in esp_netif_new_ppp()
238 …j->ppp = pppapi_pppos_create(netif_impl, pppos_low_level_output, on_ppp_status_changed, esp_netif); in esp_netif_new_ppp()
245 esp_netif->related_data = (netif_related_data_t *)ppp_obj; in esp_netif_new_ppp()
254 esp_err_t esp_netif_start_ppp(esp_netif_t *esp_netif) in esp_netif_start_ppp() argument
256 netif_related_data_t *netif_related = esp_netif->related_data; in esp_netif_start_ppp()
265 … esp_event_post(NETIF_PPP_STATUS, NETIF_PPP_CONNECT_FAILED, esp_netif, sizeof(esp_netif), 0); in esp_netif_start_ppp()
Desp_netif_lwip_ppp.h20 netif_related_data_t * esp_netif_new_ppp(esp_netif_t *esp_netif, const esp_netif_netstack_config_t …
30 esp_err_t esp_netif_start_ppp(esp_netif_t *esp_netif);
Desp_netif_br_glue.c31 static esp_err_t esp_eth_post_attach_br(esp_netif_t *esp_netif, void *args) in esp_eth_post_attach_br() argument
35 netif_glue->base.netif = esp_netif; in esp_eth_post_attach_br()
37 esp_netif_get_mac(esp_netif, eth_mac); in esp_eth_post_attach_br()
132 if (netif_glue->base.netif == ip_event->esp_netif) { in br_action_got_ip()
133 esp_netif_action_got_ip(ip_event->esp_netif, base, event_id, event_data); in br_action_got_ip()
/hal_espressif-3.7.0/components/esp_netif/include/
Desp_netif.h69 void esp_netif_destroy(esp_netif_t *esp_netif);
81 esp_err_t esp_netif_set_driver_config(esp_netif_t *esp_netif,
98 esp_err_t esp_netif_attach(esp_netif_t *esp_netif, esp_netif_iodriver_handle driver_handle);
139 esp_err_t esp_netif_receive(esp_netif_t *esp_netif, void *buffer, size_t len, void *eb);
168 void esp_netif_action_start(void *esp_netif, esp_event_base_t base, int32_t event_id, void *data);
180 void esp_netif_action_stop(void *esp_netif, esp_event_base_t base, int32_t event_id, void *data);
192 void esp_netif_action_connected(void *esp_netif, esp_event_base_t base, int32_t event_id, void *dat…
204 void esp_netif_action_disconnected(void *esp_netif, esp_event_base_t base, int32_t event_id, void *…
216 void esp_netif_action_got_ip(void *esp_netif, esp_event_base_t base, int32_t event_id, void *data);
228 void esp_netif_action_join_ip6_multicast_group(void *esp_netif, esp_event_base_t base, int32_t even…
[all …]
Desp_netif_net_stack.h41 void* esp_netif_get_netif_impl(esp_netif_t *esp_netif);
49 esp_err_t esp_netif_set_link_speed(esp_netif_t *esp_netif, uint32_t speed);
70 esp_err_t esp_netif_transmit(esp_netif_t *esp_netif, void* data, size_t len);
84 esp_err_t esp_netif_transmit_wrap(esp_netif_t *esp_netif, void *data, size_t len, void *netstack_bu…
96 void esp_netif_free_rx_buffer(void *esp_netif, void* buffer);
Desp_netif_types.h129 esp_netif_t *esp_netif; /*!< Pointer to corresponding esp-netif object */ member
136 esp_netif_t *esp_netif; /*!< Pointer to corresponding esp-netif object */ member
149 esp_netif_t *esp_netif; /*!< Pointer to the associated netif handle */ member
259 typedef esp_err_t (*esp_netif_receive_t)(esp_netif_t *esp_netif, void *buffer, size_t len, void *eb…
/hal_espressif-3.7.0/components/esp_netif/
Desp_netif_handlers.c23 void esp_netif_action_start(void *esp_netif, esp_event_base_t base, int32_t event_id, void *data) in esp_netif_action_start() argument
25 … ESP_LOGD(TAG, "esp_netif action has started with netif%p from event_id=%d", esp_netif, event_id); in esp_netif_action_start()
26 esp_netif_start(esp_netif); in esp_netif_action_start()
29 void esp_netif_action_stop(void *esp_netif, esp_event_base_t base, int32_t event_id, void *data) in esp_netif_action_stop() argument
31 ESP_LOGD(TAG, "esp_netif action stopped with netif%p from event_id=%d", esp_netif, event_id); in esp_netif_action_stop()
32 esp_netif_stop(esp_netif); in esp_netif_action_stop()
35 void esp_netif_action_connected(void *esp_netif, esp_event_base_t base, int32_t event_id, void *dat… in esp_netif_action_connected() argument
38 ESP_LOGD(TAG, "esp_netif action connected with netif%p from event_id=%d", esp_netif, event_id); in esp_netif_action_connected()
39 esp_netif_up(esp_netif); in esp_netif_action_connected()
41 if (!(esp_netif_get_flags(esp_netif) & ESP_NETIF_DHCP_CLIENT)) { in esp_netif_action_connected()
[all …]
Desp_netif_objects.c144 bool esp_netif_is_netif_listed(esp_netif_t *esp_netif) in esp_netif_is_netif_listed() argument
154 if (item->netif == esp_netif) { in esp_netif_is_netif_listed()
173 esp_netif_t *esp_netif = item->netif; in esp_netif_get_handle_from_ifkey() local
174 if (strcmp(if_key, esp_netif_get_ifkey(esp_netif)) == 0) { in esp_netif_get_handle_from_ifkey()
176 return esp_netif; in esp_netif_get_handle_from_ifkey()
Dlinker.lf1 [mapping:esp_netif]
/hal_espressif-3.7.0/components/esp_netif/test_apps/test_app_esp_netif/main/
Desp_netif_test.c21 TEST_GROUP(esp_netif);
23 TEST_SETUP(esp_netif) in TEST_SETUP() argument
29 TEST_TEAR_DOWN(esp_netif) in TEST_TEAR_DOWN() argument
35 TEST(esp_netif, init_and_destroy) in TEST() argument
38 esp_netif_t *esp_netif = esp_netif_new(NULL); in TEST() local
40 TEST_ASSERT_EQUAL(NULL, esp_netif); in TEST()
41 esp_netif = esp_netif_new(&cfg); in TEST()
42 TEST_ASSERT_NOT_EQUAL(NULL, esp_netif); in TEST()
44 esp_netif_destroy(esp_netif); in TEST()
47 TEST(esp_netif, init_and_destroy_sntp) in TEST() argument
[all …]
DCMakeLists.txt4 PRIV_INCLUDE_DIRS "$ENV{IDF_PATH}/components/esp_netif/private_include" "."
5 PRIV_REQUIRES unity esp_netif nvs_flash esp_wifi)
/hal_espressif-3.7.0/components/esp_wifi/src/
Dwifi_default.c27 static esp_err_t disconnect_and_destroy(esp_netif_t* esp_netif);
36 static void wifi_start(void *esp_netif, esp_event_base_t base, int32_t event_id, void *data) in wifi_start() argument
41 ESP_LOGD(TAG, "%s esp-netif:%p event-id%" PRId32 "", __func__, esp_netif, event_id); in wifi_start()
43 wifi_netif_driver_t driver = esp_netif_get_io_driver(esp_netif); in wifi_start()
52 if ((ret = esp_wifi_register_if_rxcb(driver, esp_netif_receive, esp_netif)) != ESP_OK) { in wifi_start()
62 esp_netif_set_mac(esp_netif, mac); in wifi_start()
63 esp_netif_action_start(esp_netif, base, event_id, data); in wifi_start()
88 esp_netif_t *esp_netif = s_wifi_netifs[WIFI_IF_STA]; in wifi_default_action_sta_connected() local
89 wifi_netif_driver_t driver = esp_netif_get_io_driver(esp_netif); in wifi_default_action_sta_connected()
93 … if ((ret = esp_wifi_register_if_rxcb(driver, esp_netif_receive, esp_netif)) != ESP_OK) { in wifi_default_action_sta_connected()
[all …]
Dwifi_netif.c79 static esp_err_t wifi_driver_start(esp_netif_t * esp_netif, void * args) in wifi_driver_start() argument
82 driver->base.netif = esp_netif; in wifi_driver_start()
90 return esp_netif_set_driver_config(esp_netif, &driver_ifconfig); in wifi_driver_start()
/hal_espressif-3.7.0/components/esp_netif/private_include/
Desp_netif_private.h29 esp_err_t esp_netif_start(esp_netif_t *esp_netif);
46 esp_err_t esp_netif_stop(esp_netif_t *esp_netif);
60 esp_err_t esp_netif_up(esp_netif_t *esp_netif);
74 esp_err_t esp_netif_down(esp_netif_t *esp_netif);
138 bool esp_netif_is_netif_listed(esp_netif_t *esp_netif);
152 esp_err_t esp_netif_add_ip6_address(esp_netif_t *esp_netif, const ip_event_add_ip6_t *addr);
166 esp_err_t esp_netif_remove_ip6_address(esp_netif_t *esp_netif, const esp_ip6_addr_t *addr);
/hal_espressif-3.7.0/components/esp_netif/lwip/netif/
Dethernetif.c76 esp_netif_t *esp_netif = esp_netif_get_handle_from_netif_impl(netif); in ethernet_low_level_output() local
78 if (!esp_netif) { in ethernet_low_level_output()
84 ret = esp_netif_transmit(esp_netif, q->payload, q->len); in ethernet_low_level_output()
93 ret = esp_netif_transmit(esp_netif, q->payload, q->len); in ethernet_low_level_output()
122 esp_netif_t *esp_netif = esp_netif_get_handle_from_netif_impl(netif); in ethernetif_input() local
127 esp_netif_free_rx_buffer(esp_netif, buffer); in ethernetif_input()
133 p = esp_pbuf_allocate(esp_netif, buffer, len, buffer); in ethernetif_input()
135 esp_netif_free_rx_buffer(esp_netif, buffer); in ethernetif_input()
161 esp_netif_t *esp_netif = netif->state; in ethernetif_init() local
165 if (esp_netif_get_hostname(esp_netif, &netif->hostname) != ESP_OK) { in ethernetif_init()
Dwlanif.c81 esp_netif_t *esp_netif = netif->state; in low_level_output() local
82 if (esp_netif == NULL) { in low_level_output()
90 ret = esp_netif_transmit_wrap(esp_netif, q->payload, q->len, q); in low_level_output()
100 ret = esp_netif_transmit_wrap(esp_netif, q->payload, q->len, q); in low_level_output()
132 esp_netif_t *esp_netif = netif->state; in wlanif_input() local
137 esp_netif_free_rx_buffer(esp_netif, l2_buff); in wlanif_input()
145 esp_netif_free_rx_buffer(esp_netif, l2_buff); in wlanif_input()
149 esp_netif_free_rx_buffer(esp_netif, l2_buff); in wlanif_input()
151 p = esp_pbuf_allocate(esp_netif, buffer, len, l2_buff); in wlanif_input()
153 esp_netif_free_rx_buffer(esp_netif, l2_buff); in wlanif_input()
Desp_pbuf_ref.c23 esp_netif_t *esp_netif; member
36 esp_netif_free_rx_buffer(esp_pbuf->esp_netif, esp_pbuf->l2_buf); in esp_pbuf_free()
48 struct pbuf* esp_pbuf_allocate(esp_netif_t *esp_netif, void *buffer, size_t len, void *l2_buff) in esp_pbuf_allocate() argument
57 esp_pbuf->esp_netif = esp_netif; in esp_pbuf_allocate()
/hal_espressif-3.7.0/components/esp_wifi/include/
Desp_wifi_default.h25 esp_err_t esp_netif_attach_wifi_station(esp_netif_t *esp_netif);
36 esp_err_t esp_netif_attach_wifi_ap(esp_netif_t *esp_netif);
70 esp_err_t esp_wifi_clear_default_wifi_driver_and_handlers(void *esp_netif);
110 void esp_netif_destroy_default_wifi(void *esp_netif);
/hal_espressif-3.7.0/components/esp_netif/vfs_l2tap/
Desp_vfs_l2tap.c338 esp_netif_t *esp_netif; in l2tap_ioctl() local
373 esp_netif = esp_netif_get_handle_from_ifkey(str); in l2tap_ioctl()
374 if (esp_netif == NULL) { in l2tap_ioctl()
380 s_l2tap_sockets[fd].driver_handle = esp_netif_get_io_driver(esp_netif); in l2tap_ioctl()
386 esp_netif = NULL; in l2tap_ioctl()
387 while ((esp_netif = esp_netif_next(esp_netif)) != NULL) { in l2tap_ioctl()
388 if (s_l2tap_sockets[fd].driver_handle == esp_netif_get_io_driver(esp_netif)) { in l2tap_ioctl()
389 *str_p = esp_netif_get_ifkey(esp_netif); in l2tap_ioctl()
/hal_espressif-3.7.0/components/esp_netif/test_apps/test_app_vfs_l2tap/main/
DCMakeLists.txt3 PRIV_REQUIRES cmock test_utils esp_netif driver esp_eth)
/hal_espressif-3.7.0/components/esp_netif/include/lwip/
Desp_pbuf_ref.h25 struct pbuf* esp_pbuf_allocate(esp_netif_t *esp_netif, void *buffer, size_t len, void *l2_buff);
/hal_espressif-3.7.0/components/esp_netif/test_apps/test_app_vfs_l2tap/
DCMakeLists.txt9 idf_component_get_property(lib esp_netif COMPONENT_LIB)
/hal_espressif-3.7.0/components/esp_netif/test_apps/test_app_esp_netif/
DCMakeLists.txt9 idf_component_get_property(lib esp_netif COMPONENT_LIB)

12