Home
last modified time | relevance | path

Searched refs:dest_addr (Results 1 – 25 of 41) sorted by relevance

12

/hal_espressif-3.4.0/examples/protocols/sockets/udp_client/main/
Dudp_client.c52 struct sockaddr_in dest_addr; in udp_client_task() local
53 dest_addr.sin_addr.s_addr = inet_addr(HOST_IP_ADDR); in udp_client_task()
54 dest_addr.sin_family = AF_INET; in udp_client_task()
55 dest_addr.sin_port = htons(PORT); in udp_client_task()
59 struct sockaddr_in6 dest_addr = { 0 }; in udp_client_task()
60 inet6_aton(HOST_IP_ADDR, &dest_addr.sin6_addr); in udp_client_task()
61 dest_addr.sin6_family = AF_INET6; in udp_client_task()
62 dest_addr.sin6_port = htons(PORT); in udp_client_task()
63 dest_addr.sin6_scope_id = esp_netif_get_netif_impl_index(EXAMPLE_INTERFACE); in udp_client_task()
67 struct sockaddr_storage dest_addr = { 0 }; in udp_client_task()
[all …]
/hal_espressif-3.4.0/examples/protocols/sockets/tcp_client/main/
Dtcp_client.c48 struct sockaddr_in dest_addr; in tcp_client_task() local
49 dest_addr.sin_addr.s_addr = inet_addr(host_ip); in tcp_client_task()
50 dest_addr.sin_family = AF_INET; in tcp_client_task()
51 dest_addr.sin_port = htons(PORT); in tcp_client_task()
55 struct sockaddr_in6 dest_addr = { 0 }; in tcp_client_task()
56 inet6_aton(host_ip, &dest_addr.sin6_addr); in tcp_client_task()
57 dest_addr.sin6_family = AF_INET6; in tcp_client_task()
58 dest_addr.sin6_port = htons(PORT); in tcp_client_task()
59 dest_addr.sin6_scope_id = esp_netif_get_netif_impl_index(EXAMPLE_INTERFACE); in tcp_client_task()
63 struct sockaddr_storage dest_addr = { 0 }; in tcp_client_task()
[all …]
/hal_espressif-3.4.0/tools/test_apps/protocols/pppos/main/
Dpppos_client_main.c89 struct sockaddr_in dest_addr; in test_tcp_client_ipv4() local
96 dest_addr.sin_addr.s_addr = inet_addr(HOST_IP_ADDR); in test_tcp_client_ipv4()
97 dest_addr.sin_family = AF_INET; in test_tcp_client_ipv4()
98 dest_addr.sin_port = htons(PORT); in test_tcp_client_ipv4()
101 inet_ntoa_r(dest_addr.sin_addr, addr_str, sizeof(addr_str) - 1); in test_tcp_client_ipv4()
109 int err = connect(sock, (struct sockaddr *)&dest_addr, sizeof(dest_addr)); in test_tcp_client_ipv4()
139 struct sockaddr_in6 dest_addr; in test_tcp_server_ipv6() local
140 bzero(&dest_addr.sin6_addr.un, sizeof(dest_addr.sin6_addr.un)); in test_tcp_server_ipv6()
141 dest_addr.sin6_family = AF_INET6; in test_tcp_server_ipv6()
142 dest_addr.sin6_port = htons(PORT); in test_tcp_server_ipv6()
[all …]
/hal_espressif-3.4.0/examples/protocols/sockets/udp_server/main/
Dudp_server.c36 struct sockaddr_in6 dest_addr; in udp_server_task() local
41 struct sockaddr_in *dest_addr_ip4 = (struct sockaddr_in *)&dest_addr; in udp_server_task()
47 bzero(&dest_addr.sin6_addr.un, sizeof(dest_addr.sin6_addr.un)); in udp_server_task()
48 dest_addr.sin6_family = AF_INET6; in udp_server_task()
49 dest_addr.sin6_port = htons(PORT); in udp_server_task()
70 int err = bind(sock, (struct sockaddr *)&dest_addr, sizeof(dest_addr)); in udp_server_task()
/hal_espressif-3.4.0/examples/common_components/protocol_examples_common/
Daddr_from_stdin.c13 …in(int port, int sock_type, int *ip_protocol, int *addr_family, struct sockaddr_storage *dest_addr) in get_addr_from_stdin() argument
43 memcpy(dest_addr, cur->ai_addr, sizeof(*dest_addr)); in get_addr_from_stdin()
48 ((struct sockaddr_in*)dest_addr)->sin_port = htons(port); in get_addr_from_stdin()
58 ((struct sockaddr_in6*)dest_addr)->sin6_port = htons(port); in get_addr_from_stdin()
59 …((struct sockaddr_in6*)dest_addr)->sin6_scope_id = esp_netif_get_netif_impl_index(EXAMPLE_INTERFAC… in get_addr_from_stdin()
/hal_espressif-3.4.0/components/spi_flash/esp32s2/
Dflash_ops_esp32s2.c34 esp_rom_spiflash_result_t IRAM_ATTR spi_flash_write_encrypted_chip(size_t dest_addr, const void *sr… in spi_flash_write_encrypted_chip() argument
39 assert((dest_addr % 16) == 0); in spi_flash_write_encrypted_chip()
48 … esp_rom_spiflash_result_t r = spi_flash_write_encrypted_chip(dest_addr, block, next_block); in spi_flash_write_encrypted_chip()
54 dest_addr += next_block; in spi_flash_write_encrypted_chip()
62 ESP_LOGV(TAG, "calling SPI_Encrypt_Write addr 0x%x src %p size 0x%x", dest_addr, src, size); in spi_flash_write_encrypted_chip()
74 rc = SPI_Encrypt_Write(dest_addr, src, size); in spi_flash_write_encrypted_chip()
/hal_espressif-3.4.0/components/spi_flash/esp32s3/
Dflash_ops_esp32s3.c34 esp_rom_spiflash_result_t IRAM_ATTR spi_flash_write_encrypted_chip(size_t dest_addr, const void *sr… in spi_flash_write_encrypted_chip() argument
39 assert((dest_addr % 16) == 0); in spi_flash_write_encrypted_chip()
48 … esp_rom_spiflash_result_t r = spi_flash_write_encrypted_chip(dest_addr, block, next_block); in spi_flash_write_encrypted_chip()
54 dest_addr += next_block; in spi_flash_write_encrypted_chip()
61 ESP_LOGV(TAG, "calling SPI_Encrypt_Write addr 0x%x src %p size 0x%x", dest_addr, src, size); in spi_flash_write_encrypted_chip()
73 rc = esp_rom_spiflash_write_encrypted(dest_addr, (void *)src, size); in spi_flash_write_encrypted_chip()
/hal_espressif-3.4.0/examples/protocols/slip/slip_udp/main/
Dslip_client_main.c74 struct sockaddr_in6 dest_addr; in udp_rx_tx_init() local
78 struct sockaddr_in *dest_addr_ip4 = (struct sockaddr_in *)&dest_addr; in udp_rx_tx_init()
86 bzero(&dest_addr.sin6_addr.un, sizeof(dest_addr.sin6_addr.un)); in udp_rx_tx_init()
87 dest_addr.sin6_family = family; in udp_rx_tx_init()
88 dest_addr.sin6_port = htons(CONFIG_EXAMPLE_UDP_PORT); in udp_rx_tx_init()
106 int err = bind(sock, (struct sockaddr *)&dest_addr, sizeof(dest_addr)); in udp_rx_tx_init()
/hal_espressif-3.4.0/components/spi_flash/esp32c3/
Dflash_ops_esp32c3.c34 esp_rom_spiflash_result_t IRAM_ATTR spi_flash_write_encrypted_chip(size_t dest_addr, const void *sr… in spi_flash_write_encrypted_chip() argument
39 assert((dest_addr % 16) == 0); in spi_flash_write_encrypted_chip()
49 … esp_rom_spiflash_result_t r = spi_flash_write_encrypted_chip(dest_addr, block, next_block); in spi_flash_write_encrypted_chip()
55 dest_addr += next_block; in spi_flash_write_encrypted_chip()
62 …(TAG, "calling esp_rom_spiflash_write_encrypted addr 0x%x src %p size 0x%x", dest_addr, src, size); in spi_flash_write_encrypted_chip()
74 rc = esp_rom_spiflash_write_encrypted(dest_addr, (uint32_t *)src, size); in spi_flash_write_encrypted_chip()
/hal_espressif-3.4.0/components/spi_flash/esp32h2/
Dflash_ops_esp32h2.c34 esp_rom_spiflash_result_t IRAM_ATTR spi_flash_write_encrypted_chip(size_t dest_addr, const void *sr… in spi_flash_write_encrypted_chip() argument
39 assert((dest_addr % 16) == 0); in spi_flash_write_encrypted_chip()
49 … esp_rom_spiflash_result_t r = spi_flash_write_encrypted_chip(dest_addr, block, next_block); in spi_flash_write_encrypted_chip()
55 dest_addr += next_block; in spi_flash_write_encrypted_chip()
62 …(TAG, "calling esp_rom_spiflash_write_encrypted addr 0x%x src %p size 0x%x", dest_addr, src, size); in spi_flash_write_encrypted_chip()
74 rc = esp_rom_spiflash_write_encrypted(dest_addr, (uint32_t *)src, size); in spi_flash_write_encrypted_chip()
/hal_espressif-3.4.0/examples/protocols/http_server/captive_portal/main/
Ddns_server.c174 struct sockaddr_in dest_addr; in dns_server_task() local
175 dest_addr.sin_addr.s_addr = htonl(INADDR_ANY); in dns_server_task()
176 dest_addr.sin_family = AF_INET; in dns_server_task()
177 dest_addr.sin_port = htons(DNS_PORT); in dns_server_task()
180 inet_ntoa_r(dest_addr.sin_addr, addr_str, sizeof(addr_str) - 1); in dns_server_task()
189 int err = bind(sock, (struct sockaddr *)&dest_addr, sizeof(dest_addr)); in dns_server_task()
/hal_espressif-3.4.0/examples/openthread/ot_cli/main/
Desp_ot_udp_socket.c91 struct sockaddr_in6 dest_addr = { 0 }; in udp_socket_client_task() local
93 inet6_aton(host_ip, &dest_addr.sin6_addr); in udp_socket_client_task()
94 dest_addr.sin6_family = AF_INET6; in udp_socket_client_task()
95 dest_addr.sin6_port = htons(port); in udp_socket_client_task()
101 …sendto(client_sock, payload, strlen(payload), 0, (struct sockaddr *)&dest_addr, sizeof(dest_addr)); in udp_socket_client_task()
Desp_ot_tcp_socket.c105 struct sockaddr_in6 dest_addr = { 0 }; in tcp_socket_client_task() local
107 inet6_aton(host_ip, &dest_addr.sin6_addr); in tcp_socket_client_task()
108 dest_addr.sin6_family = AF_INET6; in tcp_socket_client_task()
109 dest_addr.sin6_port = htons(port); in tcp_socket_client_task()
116 err = connect(client_sock, (struct sockaddr *)&dest_addr, sizeof(struct sockaddr_in6)); in tcp_socket_client_task()
/hal_espressif-3.4.0/components/wear_levelling/
DSPI_Flash.cpp52 esp_err_t SPI_Flash::write(size_t dest_addr, const void *src, size_t size) in write() argument
54 esp_err_t result = spi_flash_write(dest_addr, src, size); in write()
56 … ESP_LOGV(TAG, "write - dest_addr=0x%08x, size=0x%08x, result=0x%08x", dest_addr, size, result); in write()
58 … ESP_LOGE(TAG, "write - dest_addr=0x%08x, size=0x%08x, result=0x%08x", dest_addr, size, result); in write()
DPartition.cpp46 esp_err_t Partition::write(size_t dest_addr, const void *src, size_t size) in write() argument
49 result = esp_partition_write(this->partition, dest_addr, src, size); in write()
/hal_espressif-3.4.0/examples/protocols/sockets/tcp_server/main/
Dtcp_server.c72 struct sockaddr_storage dest_addr; in tcp_server_task() local
75 struct sockaddr_in *dest_addr_ip4 = (struct sockaddr_in *)&dest_addr; in tcp_server_task()
83 struct sockaddr_in6 *dest_addr_ip6 = (struct sockaddr_in6 *)&dest_addr; in tcp_server_task()
107 int err = bind(listen_sock, (struct sockaddr *)&dest_addr, sizeof(dest_addr)); in tcp_server_task()
/hal_espressif-3.4.0/examples/common_components/iperf/
Diperf.c152 static void socket_send(int send_socket, struct sockaddr_storage dest_addr, uint8_t type, int bw_li… in socket_send() argument
188 …actual_send = sendto(send_socket, buffer, want_send, 0, (struct sockaddr *)&dest_addr, sizeof(stru… in socket_send()
190 …actual_send = sendto(send_socket, buffer, want_send, 0, (struct sockaddr *)&dest_addr, sizeof(stru… in socket_send()
301 struct sockaddr_storage dest_addr = { 0 }; in iperf_run_tcp_client() local
318 memcpy(&dest_addr, &dest_addr6, sizeof(dest_addr6)); in iperf_run_tcp_client()
329 memcpy(&dest_addr, &dest_addr4, sizeof(dest_addr4)); in iperf_run_tcp_client()
332 socket_send(client_socket, dest_addr, IPERF_TRANS_TYPE_TCP, s_iperf_ctrl.cfg.bw_lim); in iperf_run_tcp_client()
409 struct sockaddr_storage dest_addr = { 0 }; in iperf_run_udp_client() local
425 memcpy(&dest_addr, &dest_addr6, sizeof(dest_addr6)); in iperf_run_udp_client()
436 memcpy(&dest_addr, &dest_addr4, sizeof(dest_addr4)); in iperf_run_udp_client()
[all …]
/hal_espressif-3.4.0/components/spi_flash/sim/
DSpiFlash.cpp162 esp_rom_spiflash_result_t SpiFlash::write(uint32_t dest_addr, const void *src, uint32_t size) in write() argument
173 start = dest_addr / this->get_sector_size(); in write()
174 end = size > 0 ? (dest_addr + size - 1) / this->get_sector_size() : start; in write()
189 uint8_t written = this->memory[dest_addr + ctr]; in write()
194 this->memory[dest_addr + ctr] = data; in write()
/hal_espressif-3.4.0/components/spi_flash/
Dflash_ops.c63 esp_rom_spiflash_result_t spi_flash_write_encrypted_chip(size_t dest_addr, const void *src, size_t …
612 esp_err_t IRAM_ATTR spi_flash_write_encrypted(size_t dest_addr, const void *src, size_t size) in spi_flash_write_encrypted() argument
616 CHECK_WRITE_ADDRESS(dest_addr, size); in spi_flash_write_encrypted()
617 if ((dest_addr % 16) != 0) { in spi_flash_write_encrypted()
632 err = spi_flash_write_encrypted_chip(dest_addr, src, size); in spi_flash_write_encrypted()
636 spi_flash_check_and_flush_cache(dest_addr, size); in spi_flash_write_encrypted()
647 esp_err_t err = spi_flash_read(dest_addr + i, read_buf, read_len); in spi_flash_write_encrypted()
658 dest_addr + i + r, before); in spi_flash_write_encrypted()
663 err = spi_flash_write_encrypted_chip(dest_addr + i, src + i, read_len); in spi_flash_write_encrypted()
671 spi_flash_check_and_flush_cache(dest_addr, size); in spi_flash_write_encrypted()
[all …]
/hal_espressif-3.4.0/components/spi_flash/esp32/
Dflash_ops_esp32.c36 esp_rom_spiflash_result_t IRAM_ATTR spi_flash_write_encrypted_chip(size_t dest_addr, const void *sr… in spi_flash_write_encrypted_chip() argument
41 assert((dest_addr % 16) == 0); in spi_flash_write_encrypted_chip()
54 uint32_t row_addr = dest_addr + i; in spi_flash_write_encrypted_chip()
/hal_espressif-3.4.0/components/bootloader_support/src/
Dbootloader_flash.c102 esp_err_t bootloader_flash_write(size_t dest_addr, void *src, size_t size, bool write_encrypted) in bootloader_flash_write() argument
106 return spi_flash_write_encrypted(dest_addr, src, size); in bootloader_flash_write()
108 return esp_rom_spiflash_write_encrypted(dest_addr, src, size); in bootloader_flash_write()
111 return spi_flash_write(dest_addr, src, size); in bootloader_flash_write()
425 esp_err_t bootloader_flash_write(size_t dest_addr, void *src, size_t size, bool write_encrypted) in bootloader_flash_write() argument
429 if ((dest_addr % alignment) != 0) { in bootloader_flash_write()
430 … ESP_LOGE(TAG, "bootloader_flash_write dest_addr 0x%x not %d-byte aligned", dest_addr, alignment); in bootloader_flash_write()
448 return spi_to_esp_err(esp_rom_spiflash_write_encrypted(dest_addr, src, size)); in bootloader_flash_write()
450 return spi_to_esp_err(esp_rom_spiflash_write(dest_addr, src, size)); in bootloader_flash_write()
/hal_espressif-3.4.0/components/spi_flash/include/
Desp_spi_flash.h111 esp_err_t spi_flash_write(size_t dest_addr, const void *src, size_t size);
134 esp_err_t spi_flash_write_encrypted(size_t dest_addr, const void *src, size_t size);
/hal_espressif-3.4.0/examples/mesh/ip_internal_network/main/
Dmesh_netif.c137 mesh_addr_t dest_addr; in mesh_netif_transmit_from_root_ap() local
140 memcpy(dest_addr.addr, buffer, MAC_ADDR_LEN); in mesh_netif_transmit_from_root_ap()
145 if (MAC_ADDR_EQUAL(dest_addr.addr, eth_broadcast)) { in mesh_netif_transmit_from_root_ap()
162 esp_err_t err = esp_mesh_send(&dest_addr, &data, MESH_DATA_P2P, NULL, 0); in mesh_netif_transmit_from_root_ap()
/hal_espressif-3.4.0/examples/common_components/protocol_examples_common/include/
Daddr_from_stdin.h40 struct sockaddr_storage *dest_addr);
/hal_espressif-3.4.0/components/wear_levelling/private_include/
DFlash_Access.h31 virtual esp_err_t write(size_t dest_addr, const void *src, size_t size) = 0;

12