Home
last modified time | relevance | path

Searched refs:src_addr (Results 1 – 25 of 57) sorted by relevance

123

/Zephyr-latest/subsys/net/lib/dns/
Dllmnr_responder.c87 static void create_ipv6_dst_addr(struct sockaddr_in6 *src_addr, in create_ipv6_dst_addr() argument
91 addr->sin6_port = src_addr->sin6_port; in create_ipv6_dst_addr()
94 (uint8_t *)&src_addr->sin6_addr); in create_ipv6_dst_addr()
108 static void create_ipv4_dst_addr(struct sockaddr_in *src_addr, in create_ipv4_dst_addr() argument
112 addr->sin_port = src_addr->sin_port; in create_ipv4_dst_addr()
115 (uint8_t *)&src_addr->sin_addr); in create_ipv4_dst_addr()
302 struct sockaddr_in *src_addr, in create_ipv4_answer() argument
312 create_ipv4_dst_addr(src_addr, net_sin(dst)); in create_ipv4_answer()
335 struct sockaddr_in6 *src_addr, in create_ipv6_answer() argument
346 create_ipv6_dst_addr(src_addr, net_sin6(dst)); in create_ipv6_answer()
[all …]
Dmdns_responder.c275 struct sockaddr *src_addr, in send_response() argument
293 iface = net_if_ipv6_select_src_iface(&net_sin6(src_addr)->sin6_addr); in send_response()
295 iface = net_if_ipv4_select_src_iface(&net_sin(src_addr)->sin_addr); in send_response()
303 &net_sin(src_addr)->sin_addr); in send_response()
320 &net_sin6(src_addr)->sin6_addr); in send_response()
350 struct sockaddr *src_addr, in send_sd_response() argument
402 iface = net_if_ipv6_select_src_iface(&net_sin6(src_addr)->sin6_addr); in send_sd_response()
404 iface = net_if_ipv4_select_src_iface(&net_sin(src_addr)->sin_addr); in send_sd_response()
411 &net_sin(src_addr)->sin_addr); in send_sd_response()
424 &net_sin6(src_addr)->sin6_addr); in send_sd_response()
[all …]
/Zephyr-latest/drivers/misc/nordic_vpr_launcher/
Dnordic_vpr_launcher.c27 uintptr_t src_addr; member
39 (void *)config->src_addr, (void *)config->exec_addr, config->size); in nordic_vpr_launcher_init()
40 memcpy((void *)config->exec_addr, (void *)config->src_addr, config->size); in nordic_vpr_launcher_init()
70 (.src_addr = VPR_ADDR(DT_INST_PHANDLE(inst, source_memory)), \
/Zephyr-latest/samples/net/promiscuous_mode/src/
Dmain.c60 char src_addr_buf[NET_IPV6_ADDR_LEN], *src_addr; in print_info() local
123 src_addr = net_addr_ntop(family, src, in print_info()
134 src_addr, src_port, in print_info()
138 len, src_addr, in print_info()
145 src_addr, src_port, in print_info()
149 len, src_addr, in print_info()
/Zephyr-latest/subsys/bluetooth/mesh/
Ddelayable_msg.h11 uint16_t src_addr, const struct bt_mesh_send_cb *cb,
Ddelayable_msg.c35 uint16_t src_addr; member
190 err = bt_mesh_access_send(&msg->ctx, &buf, msg->src_addr, msg->cb, msg->cb_data); in push_msg_from_delayable_msgs()
222 uint16_t src_addr, const struct bt_mesh_send_cb *cb, void *cb_data) in bt_mesh_delayable_msg_manage() argument
275 msg->src_addr = src_addr; in bt_mesh_delayable_msg_manage()
Daccess.h106 int bt_mesh_access_send(struct bt_mesh_msg_ctx *ctx, struct net_buf_simple *buf, uint16_t src_addr,
/Zephyr-latest/drivers/dma/
Ddma_pl330.h125 uint64_t src_addr; member
145 uint64_t src_addr; member
Ddma_sedi.c313 uint64_t src_addr, dst_addr; in dma_sedi_start() local
322 src_addr = block_config->source_address; in dma_sedi_start()
326 src_addr, dst_addr, block_config->block_size); in dma_sedi_start()
Ddma_pl330.c124 ch_handle->src_addr = src; in dma_pl330_config_channel()
176 SAR, ch_dat->src_addr); in dma_pl330_setup_ch()
494 channel_cfg->src_addr = cfg->head_block->source_address; in dma_pl330_configure()
531 channel_cfg->src_addr, channel, in dma_pl330_transfer_start()
/Zephyr-latest/subsys/net/lib/sockets/
Dsockets_packet.c169 struct sockaddr *src_addr, in zpacket_set_source_addr() argument
233 memcpy(src_addr, &addr, MIN(sizeof(struct sockaddr_ll), *addrlen)); in zpacket_set_source_addr()
298 int flags, struct sockaddr *src_addr, in zpacket_recvfrom_ctx() argument
344 if (src_addr && addrlen) { in zpacket_recvfrom_ctx()
345 zpacket_set_source_addr(ctx, pkt, src_addr, addrlen); in zpacket_recvfrom_ctx()
446 int flags, struct sockaddr *src_addr, in packet_sock_recvfrom_vmeth() argument
450 src_addr, addrlen); in packet_sock_recvfrom_vmeth()
Dsockets_net_mgmt.c143 struct sockaddr *src_addr, in znet_mgmt_recvfrom() argument
146 struct sockaddr_nm *nm_addr = (struct sockaddr_nm *)src_addr; in znet_mgmt_recvfrom()
353 struct sockaddr *src_addr, in net_mgmt_sock_recvfrom() argument
357 src_addr, addrlen); in net_mgmt_sock_recvfrom()
Dsockets.c478 struct sockaddr *src_addr, socklen_t *addrlen) in z_impl_zsock_recvfrom() argument
482 SYS_PORT_TRACING_OBJ_FUNC_ENTER(socket, recvfrom, sock, max_len, flags, src_addr, addrlen); in z_impl_zsock_recvfrom()
484 bytes_received = VTABLE_CALL(recvfrom, sock, buf, max_len, flags, src_addr, addrlen); in z_impl_zsock_recvfrom()
487 src_addr, addrlen, in z_impl_zsock_recvfrom()
497 struct sockaddr *src_addr, socklen_t *addrlen) in z_vrfy_zsock_recvfrom() argument
511 K_OOPS(src_addr && K_SYSCALL_MEMORY_WRITE(src_addr, addrlen_copy)); in z_vrfy_zsock_recvfrom()
514 (struct sockaddr *)src_addr, in z_vrfy_zsock_recvfrom()
/Zephyr-latest/tests/net/lib/mqtt_sn_client/src/
Dmqtt_sn_client.c97 const void *src_addr; member
102 void *src_addr, size_t *addrlen) in tp_recvfrom() argument
106 memcpy(src_addr, recvfrom_data.src_addr, recvfrom_data.addrlen); in tp_recvfrom()
143 const struct mqtt_sn_data *src_addr) in input() argument
147 recvfrom_data.src_addr = src_addr->data; in input()
148 recvfrom_data.addrlen = src_addr->size; in input()
/Zephyr-latest/subsys/net/lib/mqtt_sn/
Dmqtt_sn_transport_udp.c191 void *src_addr, size_t *addrlen) in tp_udp_recvfrom() argument
195 struct sockaddr *srcaddr = src_addr; in tp_udp_recvfrom()
197 rc = zsock_recvfrom(udp->sock, buffer, length, 0, src_addr, addrlen); in tp_udp_recvfrom()
213 src_addr = NULL; in tp_udp_recvfrom()
/Zephyr-latest/soc/espressif/esp32s3/
Desp32s3-mp.c45 static int load_segment(uint32_t src_addr, uint32_t src_len, uint32_t dst_addr) in load_segment() argument
47 const uint32_t *data = (const uint32_t *)sys_mmap(src_addr, src_len); in load_segment()
/Zephyr-latest/tests/net/lib/coap_client/src/
Dmain.c122 struct sockaddr *src_addr, socklen_t *addrlen) in z_impl_zsock_recvfrom_custom_fake() argument
270 int flags, struct sockaddr *src_addr, in z_impl_zsock_recvfrom_custom_fake_response() argument
292 int flags, struct sockaddr *src_addr, in z_impl_zsock_recvfrom_custom_fake_empty_ack() argument
313 struct sockaddr *src_addr, socklen_t *addrlen) in z_impl_zsock_recvfrom_custom_fake_rst() argument
332 int flags, struct sockaddr *src_addr, in z_impl_zsock_recvfrom_custom_fake_only_ack() argument
337 ret = z_impl_zsock_recvfrom_custom_fake_empty_ack(sock, buf, max_len, flags, src_addr, in z_impl_zsock_recvfrom_custom_fake_only_ack()
344 int flags, struct sockaddr *src_addr, in z_impl_zsock_recvfrom_custom_fake_unmatching() argument
365 int flags, struct sockaddr *src_addr, in z_impl_zsock_recvfrom_custom_fake_echo() argument
392 int flags, struct sockaddr *src_addr, in z_impl_zsock_recvfrom_custom_fake_echo_next_req() argument
420 struct sockaddr *src_addr, in z_impl_zsock_recvfrom_custom_fake_duplicate_response() argument
[all …]
/Zephyr-latest/tests/net/virtual/src/
Dmain.c820 struct sockaddr dst_addr, src_addr; in ZTEST() local
865 memcpy(&src_addr, &virtual_addr, sizeof(src_addr)); in ZTEST()
870 addr = &src_addr; in ZTEST()
878 addr = &src_addr; in ZTEST()
944 struct sockaddr dst_addr, src_addr, inner_src; in test_virtual_recv_data_from_tunnel() local
957 memcpy(&src_addr, &peer_addr, sizeof(src_addr)); in test_virtual_recv_data_from_tunnel()
962 net_sin(&src_addr)->sin_addr.s4_addr[3] = remote_ip; in test_virtual_recv_data_from_tunnel()
966 net_sin6(&src_addr)->sin6_addr.s6_addr[15] = remote_ip; in test_virtual_recv_data_from_tunnel()
985 ret = net_ipv4_create(outer, &net_sin(&src_addr)->sin_addr, in test_virtual_recv_data_from_tunnel()
994 ret = net_ipv6_create(outer, &net_sin6(&src_addr)->sin6_addr, in test_virtual_recv_data_from_tunnel()
/Zephyr-latest/subsys/net/l2/ieee802154/
Dieee802154_frame.c252 if (mhr->src_addr->plain.pan_id != IEEE802154_BROADCAST_PAN_ID) { in validate_mac_command_cfi_to_mhr()
431 (mpdu->mhr.fs->fc.pan_id_comp), &mpdu->mhr.src_addr)) { in ieee802154_validate_frame()
600 struct ieee802154_address *src_addr; in generate_addressing_fields() local
628 src_addr = &address_field->comp.addr; in generate_addressing_fields()
631 src_addr = &address_field->plain.addr; in generate_addressing_fields()
636 src_addr->short_addr = sys_cpu_to_le16(params->short_addr); in generate_addressing_fields()
639 memcpy(src_addr->ext_addr, ctx->ext_addr, IEEE802154_EXT_ADDR_LENGTH); in generate_addressing_fields()
978 src = mhr->fs->fc.pan_id_comp ? &mhr->src_addr->comp.addr : &mhr->src_addr->plain.addr; in ieee802154_decipher_data_frame()
Dieee802154.c442 fs->fc.src_addr_mode, mpdu.mhr.src_addr); in ieee802154_recv()
504 struct sockaddr_ll_ptr *src_addr = in ieee802154_send() local
509 net_pkt_lladdr_src(pkt)->addr = src_addr->sll_addr; in ieee802154_send()
510 net_pkt_lladdr_src(pkt)->len = src_addr->sll_halen; in ieee802154_send()
/Zephyr-latest/tests/net/ieee802154/l2/src/
Dieee802154_test.c40 struct ieee802154_address_field *src_addr; member
81 .src_addr = (struct ieee802154_address_field *)(ns_pkt + 7),
98 .src_addr = NULL,
121 .src_addr = (struct ieee802154_address_field *)(beacon_pkt + 3),
146 .src_addr = (struct ieee802154_address_field *)(sec_data_pkt + 7),
445 mpdu.mhr.src_addr != t->mhr_check.src_addr) { in test_packet_parsing()
448 mpdu.mhr.src_addr, t->mhr_check.src_addr); in test_packet_parsing()
/Zephyr-latest/include/zephyr/posix/sys/
Dsocket.h38 ssize_t recvfrom(int sock, void *buf, size_t max_len, int flags, struct sockaddr *src_addr,
/Zephyr-latest/tests/bluetooth/mesh/delayable_msg/src/
Dmain.c51 int bt_mesh_access_send(struct bt_mesh_msg_ctx *ctx, struct net_buf_simple *buf, uint16_t src_addr, in bt_mesh_access_send() argument
58 ztest_check_expected_value(src_addr); in bt_mesh_access_send()
97 ztest_expect_value(bt_mesh_access_send, src_addr, SRC_ADDR); in set_expectation()
/Zephyr-latest/soc/espressif/esp32/
Desp32-mp.c331 static int load_segment(uint32_t src_addr, uint32_t src_len, uint32_t dst_addr) in load_segment() argument
333 const uint32_t *data = (const uint32_t *)sys_mmap(src_addr, src_len); in load_segment()
/Zephyr-latest/tests/net/lib/lwm2m/lwm2m_engine/src/
Dstubs.c111 struct sockaddr *src_addr, socklen_t *addrlen) in z_impl_zsock_recvfrom() argument

123