Home
last modified time | relevance | path

Searched refs:ip_info (Results 1 – 16 of 16) sorted by relevance

/device/soc/esp/esp32/components/esp_netif/loopback/
Desp_netif_loopback.c48 esp_netif_ip_info_t* ip_info; member
124 if (cfg->base->ip_info == NULL) { in esp_netif_init_configuration()
125 ip4_addr_set_zero(&esp_netif->ip_info->ip); in esp_netif_init_configuration()
126 ip4_addr_set_zero(&esp_netif->ip_info->gw); in esp_netif_init_configuration()
127 ip4_addr_set_zero(&esp_netif->ip_info->netmask); in esp_netif_init_configuration()
129 memcpy(esp_netif->ip_info, cfg->base->ip_info, sizeof(esp_netif_ip_info_t)); in esp_netif_init_configuration()
131 memcpy(esp_netif->ip_info_old, esp_netif->ip_info, sizeof(esp_netif_ip_info_t)); in esp_netif_init_configuration()
179 esp_netif_ip_info_t *ip_info = calloc(1, sizeof(esp_netif_ip_info_t)); in esp_netif_new() local
180 if (!ip_info) { in esp_netif_new()
184 esp_netif->ip_info = ip_info; in esp_netif_new()
[all …]
/device/soc/esp/esp32/components/esp_netif/lwip/
Desp_netif_lwip.c361 if (cfg->base->ip_info == NULL) { in esp_netif_init_configuration()
362 ip4_addr_set_zero(&esp_netif->ip_info->ip); in esp_netif_init_configuration()
363 ip4_addr_set_zero(&esp_netif->ip_info->gw); in esp_netif_init_configuration()
364 ip4_addr_set_zero(&esp_netif->ip_info->netmask); in esp_netif_init_configuration()
366 memcpy(esp_netif->ip_info, cfg->base->ip_info, sizeof(esp_netif_ip_info_t)); in esp_netif_init_configuration()
368 memcpy(esp_netif->ip_info_old, esp_netif->ip_info, sizeof(esp_netif_ip_info_t)); in esp_netif_init_configuration()
468 esp_netif_ip_info_t *ip_info = calloc(1, sizeof(esp_netif_ip_info_t)); in esp_netif_new() local
469 if (!ip_info) { in esp_netif_new()
475 esp_netif->ip_info = ip_info; in esp_netif_new()
478 ip_info = calloc(1, sizeof(esp_netif_ip_info_t)); in esp_netif_new()
[all …]
Desp_netif_lwip_ppp.c69 esp_netif_ip_info_t *ip_info = netif->ip_info; in on_ppp_status_changed() local
70 ip4_addr_set(&ip_info->ip, ip_2_ip4(&pppif->ip_addr)); in on_ppp_status_changed()
71 ip4_addr_set(&ip_info->netmask, ip_2_ip4(&pppif->netmask)); in on_ppp_status_changed()
72 ip4_addr_set(&ip_info->gw, ip_2_ip4(&pppif->gw)); in on_ppp_status_changed()
74 ip4_addr_set(&evt.ip_info.ip, ip_2_ip4(&pppif->ip_addr)); in on_ppp_status_changed()
75 ip4_addr_set(&evt.ip_info.gw, ip_2_ip4(&pppif->gw)); in on_ppp_status_changed()
76 ip4_addr_set(&evt.ip_info.netmask, ip_2_ip4(&pppif->netmask)); in on_ppp_status_changed()
Desp_netif_lwip_internal.h103 esp_netif_ip_info_t* ip_info; member
/device/soc/esp/esp32/components/tcpip_adapter/
Dtcpip_adapter_compat.c198 esp_err_t tcpip_adapter_get_ip_info(tcpip_adapter_if_t tcpip_if, tcpip_adapter_ip_info_t *ip_info) in tcpip_adapter_get_ip_info() argument
200 return esp_netif_get_ip_info(netif_from_if(tcpip_if), (esp_netif_ip_info_t *)ip_info); in tcpip_adapter_get_ip_info()
276 …rr_t tcpip_adapter_set_ip_info(tcpip_adapter_if_t tcpip_if, const tcpip_adapter_ip_info_t *ip_info) in tcpip_adapter_set_ip_info() argument
278 return esp_netif_set_ip_info(netif_from_if(tcpip_if), (esp_netif_ip_info_t *)ip_info); in tcpip_adapter_set_ip_info()
301 …cpip_adapter_compat_start_netif(esp_netif_t *netif, uint8_t *mac, tcpip_adapter_ip_info_t *ip_info) in tcpip_adapter_compat_start_netif() argument
303 if (netif == NULL || mac == NULL || ip_info == NULL) { in tcpip_adapter_compat_start_netif()
307 esp_netif_set_ip_info(netif, (esp_netif_ip_info_t *)ip_info); in tcpip_adapter_compat_start_netif()
312 esp_err_t tcpip_adapter_eth_start(uint8_t *mac, tcpip_adapter_ip_info_t *ip_info, void *args) in tcpip_adapter_eth_start() argument
315 mac, ip_info); in tcpip_adapter_eth_start()
318 esp_err_t tcpip_adapter_sta_start(uint8_t *mac, tcpip_adapter_ip_info_t *ip_info) in tcpip_adapter_sta_start() argument
[all …]
/device/soc/esp/esp32/components/tcpip_adapter/include/
Dtcpip_adapter.h52 esp_err_t tcpip_adapter_get_ip_info(tcpip_adapter_if_t tcpip_if, tcpip_adapter_ip_info_t *ip_info);
179 …r_t tcpip_adapter_set_ip_info(tcpip_adapter_if_t tcpip_if, const tcpip_adapter_ip_info_t *ip_info);
204 esp_err_t tcpip_adapter_eth_start(uint8_t *mac, tcpip_adapter_ip_info_t *ip_info, void *args);
209 esp_err_t tcpip_adapter_sta_start(uint8_t *mac, tcpip_adapter_ip_info_t *ip_info);
214 esp_err_t tcpip_adapter_ap_start(uint8_t *mac, tcpip_adapter_ip_info_t *ip_info);
234 …err_t tcpip_adapter_get_old_ip_info(tcpip_adapter_if_t tcpip_if, tcpip_adapter_ip_info_t *ip_info);
239 …tcpip_adapter_set_old_ip_info(tcpip_adapter_if_t tcpip_if, const tcpip_adapter_ip_info_t *ip_info);
/device/soc/esp/esp32/components/esp_netif/include/
Desp_netif_defaults.h32 ESP_COMPILER_DESIGNATED_INIT_AGGREGATE_TYPE_EMPTY(ip_info) \
44 .ip_info = &_g_esp_netif_soft_ap_ip, \
56 ESP_COMPILER_DESIGNATED_INIT_AGGREGATE_TYPE_EMPTY(ip_info) \
68 ESP_COMPILER_DESIGNATED_INIT_AGGREGATE_TYPE_EMPTY(ip_info) \
80 ESP_COMPILER_DESIGNATED_INIT_AGGREGATE_TYPE_EMPTY(ip_info) \
Desp_netif.h331 esp_err_t esp_netif_get_ip_info(esp_netif_t *esp_netif, esp_netif_ip_info_t *ip_info);
348 esp_err_t esp_netif_get_old_ip_info(esp_netif_t *esp_netif, esp_netif_ip_info_t *ip_info);
372 esp_err_t esp_netif_set_ip_info(esp_netif_t *esp_netif, const esp_netif_ip_info_t *ip_info);
391 esp_err_t esp_netif_set_old_ip_info(esp_netif_t *esp_netif, const esp_netif_ip_info_t *ip_info);
Desp_netif_types.h115 esp_netif_ip_info_t ip_info; /*!< IP address, netmask, gatway IP address */ member
161 const esp_netif_ip_info_t* ip_info; /*!< initial ip address for this interface */ member
/device/soc/esp/esp32/components/esp_netif/
Desp_netif_handlers.c77 memcpy(&evt.ip_info, &ip, sizeof(esp_netif_ip_info_t)); in esp_netif_action_connected()
102 IP2STR(&event->ip_info.ip), in esp_netif_action_got_ip()
103 IP2STR(&event->ip_info.netmask), in esp_netif_action_got_ip()
104 IP2STR(&event->ip_info.gw)); in esp_netif_action_got_ip()
/device/soc/bestechnic/bes2600/liteos_m/sdk/bsp/net/wifi/
Dbwifi_interface.h115 struct ip_info { struct
284 int bwifi_set_static_ip(struct ip_info *ip);
288 int bwifi_get_current_ip(struct ip_info *ip);
310 int bwifi_set_ip_addr(BWIFI_INTF_TYPE_T type, struct ip_info *ip);
/device/soc/esp/esp32/components/esp_event/
Devent_send_compat.inc218 IP2STR(&got_ip->ip_info.ip),
219 IP2STR(&got_ip->ip_info.netmask),
220 IP2STR(&got_ip->ip_info.gw));
303 IP2STR(&got_ip->ip_info.ip),
304 IP2STR(&got_ip->ip_info.netmask),
305 IP2STR(&got_ip->ip_info.gw));
/device/soc/esp/esp32/components/esp_netif/private_include/
Desp_netif_private.h90 bool esp_netif_is_valid_static_ip(esp_netif_ip_info_t *ip_info);
/device/soc/winnermicro/wm800/board/src/app/wm_atcmd/
Dwm_cmdp_hostif.c2040 struct tls_cmd_ip_params_t ip_info; in nip_proc() local
2045 ip_info.type = cmd->nip.type; in nip_proc()
2046 memcpy(ip_info.ip_addr, cmd->nip.ip, FOUR); in nip_proc()
2047 memcpy(ip_info.netmask, cmd->nip.nm, FOUR); in nip_proc()
2048 memcpy(ip_info.gateway, cmd->nip.gw, FOUR); in nip_proc()
2049 memcpy(ip_info.dns, cmd->nip.dns, FOUR); in nip_proc()
2050 ret = tls_cmd_set_ip_info(&ip_info, update_flash); in nip_proc()
2052 ret = tls_cmd_get_ip_info(&ip_info); in nip_proc()
2053 cmdrsp->nip.type = ip_info.type; in nip_proc()
2054 memcpy(cmdrsp->nip.ip, ip_info.ip_addr, FOUR); in nip_proc()
[all …]
/device/board/openvalley/niobeu4/liteos_m/hals/drivers/wifi_lite/
Dwifi_device.c744 esp_netif_ip_info_t ip_info; in GetLinkedInfo() local
745 err = esp_netif_get_ip_info(info->netif, &ip_info); in GetLinkedInfo()
751 result->ipAddress = ip_info.ip.addr; in GetLinkedInfo()
/device/soc/bestechnic/hals/communication/wifi_lite/wifiservice/
Dwifi_device.c42 static struct ip_info _current_ip;