Home
last modified time | relevance | path

Searched refs:local_addr (Results 1 – 25 of 32) sorted by relevance

12

/Zephyr-latest/subsys/net/ip/
Dconnection.c95 net_sprint_ipv6_addr(&net_sin6(&conn->local_addr)->sin6_addr)); in conn_register_debug()
99 net_sprint_ipv4_addr(&net_sin(&conn->local_addr)->sin_addr)); in conn_register_debug()
160 const struct sockaddr *local_addr, in conn_find_handler() argument
179 if (local_addr) { in conn_find_handler()
185 local_addr->sa_family == AF_INET6 && in conn_find_handler()
186 local_addr->sa_family == in conn_find_handler()
187 conn->local_addr.sa_family) { in conn_find_handler()
189 &net_sin6(local_addr)->sin6_addr, in conn_find_handler()
190 &net_sin6(&conn->local_addr)-> in conn_find_handler()
195 local_addr->sa_family == AF_INET && in conn_find_handler()
[all …]
Dconnection.h61 struct sockaddr local_addr; member
108 const struct sockaddr *local_addr,
118 const struct sockaddr *local_addr, in net_conn_register() argument
129 ARG_UNUSED(local_addr); in net_conn_register()
Dudp_internal.h118 const struct sockaddr *local_addr,
Dnet_context.c179 const struct sockaddr *local_addr, in check_used_port() argument
208 local_addr->sa_family == AF_INET6) { in check_used_port()
217 &net_sin6(local_addr)->sin6_addr))) { in check_used_port()
229 &net_sin6(local_addr)->sin6_addr))) { in check_used_port()
246 local_addr)->sin6_addr)) { in check_used_port()
264 local_addr->sa_family == AF_INET) { in check_used_port()
279 &net_sin(local_addr)->sin_addr))) { in check_used_port()
291 &net_sin(local_addr)->sin_addr))) { in check_used_port()
308 local_addr)->sin_addr)) { in check_used_port()
411 const struct sockaddr *local_addr) in net_context_port_in_use() argument
[all …]
Dudp.c132 const struct sockaddr *local_addr, in net_udp_register() argument
140 return net_conn_register(IPPROTO_UDP, family, remote_addr, local_addr, in net_udp_register()
Dtcp.c2396 struct sockaddr local_addr = { 0 }; in tcp_conn_new() local
2434 local_addr.sa_family = net_context_get_family(context); in tcp_conn_new()
2438 net_ipaddr_copy(&net_sin6(&local_addr)->sin6_addr, in tcp_conn_new()
2442 net_ipaddr_copy(&net_sin(&local_addr)->sin_addr, in tcp_conn_new()
2446 ret = net_context_bind(context, &local_addr, sizeof(local_addr)); in tcp_conn_new()
2476 conn->seq = tcp_init_isn(&local_addr, &context->remote); in tcp_conn_new()
2480 net_sprint_addr(local_addr.sa_family, in tcp_conn_new()
2481 (const void *)&net_sin(&local_addr)->sin_addr), in tcp_conn_new()
2486 &context->remote, &local_addr, in tcp_conn_new()
3821 struct sockaddr *local_addr, in net_tcp_connect() argument
[all …]
/Zephyr-latest/drivers/pcie/endpoint/
Dpcie_ep_common.c59 static int pcie_ep_mapped_copy(uint64_t mapped_addr, uintptr_t local_addr, in pcie_ep_mapped_copy() argument
73 UINT_TO_POINTER(local_addr), size); in pcie_ep_mapped_copy()
75 memcpy(UINT_TO_POINTER(local_addr), in pcie_ep_mapped_copy()
87 uintptr_t *local_addr, uint32_t size, in pcie_ep_xfer_data_memcpy() argument
103 ret = pcie_ep_mapped_copy(mapped_addr, (uintptr_t)local_addr, in pcie_ep_xfer_data_memcpy()
154 ((uintptr_t)local_addr) + xfer_size, in pcie_ep_xfer_data_memcpy()
171 uintptr_t *local_addr, uint32_t size, in pcie_ep_xfer_data_dma() argument
188 ret = pcie_ep_dma_xfer(dev, mapped_addr, (uintptr_t)local_addr, in pcie_ep_xfer_data_dma()
247 ((uintptr_t)local_addr) + xfer_size, in pcie_ep_xfer_data_dma()
Dpcie_ep_iproc.c181 uintptr_t local_addr, uint32_t size, in iproc_pcie_pl330_dma_xfer() argument
203 dma_block_cfg.source_address = local_addr; in iproc_pcie_pl330_dma_xfer()
208 dma_block_cfg.dest_address = local_addr; in iproc_pcie_pl330_dma_xfer()
/Zephyr-latest/soc/ti/k3/am6x/m4/
Dsoc.c23 .local_addr = 0x80000000u,
27 .local_addr = 0xA0000000u,
32 .local_addr = 0xC0000000u,
37 .local_addr = 0x60000000u,
/Zephyr-latest/drivers/mm/
Dmm_drv_ti_rat.c42 uint32_t local_addr = addr_translate_config->region_config[region_num].local_addr; in address_trans_set_region() local
51 local_addr = local_addr & ~((uint32_t)(BIT64_MASK(size))); in address_trans_set_region()
54 sys_write32(local_addr, RAT_BASE(rat_base_addr, region_num)); in address_trans_set_region()
134 *va = (translate_config.region_config[regionId].local_addr + offset); in sys_mm_drv_page_phys_get()
/Zephyr-latest/subsys/net/lib/shell/
Dconn.c71 if (IS_ENABLED(CONFIG_NET_IPV6) && conn->local_addr.sa_family == AF_INET6) { in conn_handler_cb()
74 &net_sin6(&conn->local_addr)->sin6_addr), in conn_handler_cb()
75 ntohs(net_sin6(&conn->local_addr)->sin6_port)); in conn_handler_cb()
81 } else if (IS_ENABLED(CONFIG_NET_IPV4) && conn->local_addr.sa_family == AF_INET) { in conn_handler_cb()
84 &net_sin(&conn->local_addr)->sin_addr), in conn_handler_cb()
85 ntohs(net_sin(&conn->local_addr)->sin_port)); in conn_handler_cb()
91 } else if (conn->local_addr.sa_family == AF_UNSPEC) { in conn_handler_cb()
95 conn->local_addr.sa_family); in conn_handler_cb()
100 net_proto2str(conn->local_addr.sa_family, conn->proto), in conn_handler_cb()
/Zephyr-latest/subsys/net/lib/dns/
Ddispatcher.c217 ctx->local_addr.sa_family == entry->local_addr.sa_family && in dns_dispatcher_register()
219 if (net_sin(&entry->local_addr)->sin_port == in dns_dispatcher_register()
220 net_sin(&ctx->local_addr)->sin_port) { in dns_dispatcher_register()
233 ctx->local_addr.sa_family == entry->local_addr.sa_family) { in dns_dispatcher_register()
234 if (net_sin(&entry->local_addr)->sin_port == in dns_dispatcher_register()
235 net_sin(&ctx->local_addr)->sin_port) { in dns_dispatcher_register()
284 if (ctx->local_addr.sa_family == AF_INET) { in dns_dispatcher_register()
291 ret = zsock_bind(ctx->sock, &ctx->local_addr, addrlen); in dns_dispatcher_register()
Dllmnr_responder.c147 struct sockaddr *local_addr, in bind_ctx() argument
156 ret = zsock_bind(sock, local_addr, addrlen); in bind_ctx()
159 local_addr->sa_family == AF_INET ? in bind_ctx()
592 static void setup_ipv6_addr(struct sockaddr_in6 *local_addr) in setup_ipv6_addr() argument
594 create_ipv6_addr(local_addr); in setup_ipv6_addr()
596 net_if_foreach(iface_ipv6_cb, &local_addr->sin6_addr); in setup_ipv6_addr()
613 static void setup_ipv4_addr(struct sockaddr_in *local_addr) in setup_ipv4_addr() argument
615 create_ipv4_addr(local_addr); in setup_ipv4_addr()
617 net_if_foreach(iface_ipv4_cb, &local_addr->sin_addr); in setup_ipv4_addr()
631 static struct sockaddr_in6 local_addr; in init_listener() local
[all …]
Dmdns_responder.c117 &net_sin(&v4_ctx[i].dispatcher.local_addr)->sin_addr, in mdns_iface_event_handler()
619 static void setup_ipv6_addr(struct sockaddr_in6 *local_addr) in setup_ipv6_addr() argument
621 create_ipv6_addr(local_addr); in setup_ipv6_addr()
623 net_if_foreach(iface_ipv6_cb, &local_addr->sin6_addr); in setup_ipv6_addr()
655 static void setup_ipv4_addr(struct sockaddr_in *local_addr) in setup_ipv4_addr() argument
657 create_ipv4_addr(local_addr); in setup_ipv4_addr()
659 net_if_foreach(iface_ipv4_cb, &local_addr->sin_addr); in setup_ipv4_addr()
710 memcpy(&ctx->dispatcher.local_addr, local, in register_dispatcher()
713 memcpy(&ctx->dispatcher.local_addr, local, in register_dispatcher()
Dresolve.c308 memcpy(&server->dispatcher.local_addr, in register_dispatcher()
313 memcpy(&server->dispatcher.local_addr, in register_dispatcher()
365 struct sockaddr *local_addr = NULL; in dns_resolve_init_locked() local
460 local_addr = (struct sockaddr *)&local_addr6; in dns_resolve_init_locked()
474 local_addr = (struct sockaddr *)&local_addr4; in dns_resolve_init_locked()
486 if (!local_addr) { in dns_resolve_init_locked()
561 ret = register_dispatcher(ctx, &resolve_svc, &ctx->servers[i], local_addr, in dns_resolve_init_locked()
/Zephyr-latest/include/zephyr/drivers/pcie/endpoint/
Dpcie_ep.h75 uintptr_t local_addr, uint32_t size,
248 uintptr_t local_addr, uint32_t size, in pcie_ep_dma_xfer() argument
255 return api->dma_xfer(dev, mapped_addr, local_addr, size, dir); in pcie_ep_dma_xfer()
280 uintptr_t *local_addr, uint32_t size,
302 uintptr_t *local_addr, uint32_t size,
/Zephyr-latest/tests/net/socket/misc/src/
Dmain.c456 struct sockaddr local_addr = { 0 }; in test_getsockname_tcp() local
478 ret = zsock_getsockname(sock_c, &local_addr, &local_addr_len); in test_getsockname_tcp()
481 ret = zsock_getsockname(sock_s, &local_addr, &local_addr_len); in test_getsockname_tcp()
489 memset(&local_addr, 0, sizeof(local_addr)); in test_getsockname_tcp()
491 ret = zsock_getsockname(sock_s, &local_addr, &local_addr_len); in test_getsockname_tcp()
493 zassert_mem_equal(&local_addr, &srv_addr, ADDR_SIZE(family), in test_getsockname_tcp()
503 memset(&local_addr, 0, sizeof(local_addr)); in test_getsockname_tcp()
505 ret = zsock_getsockname(sock_c, &local_addr, &local_addr_len); in test_getsockname_tcp()
507 zassert_equal(local_addr.sa_family, family, "wrong family"); in test_getsockname_tcp()
525 struct sockaddr local_addr = { 0 }; in test_getsockname_udp() local
[all …]
/Zephyr-latest/subsys/logging/backends/
Dlog_backend_net.c93 struct sockaddr *local_addr = NULL; in do_net_init() local
100 local_addr = (struct sockaddr *)&local_addr4; in do_net_init()
107 local_addr = (struct sockaddr *)&local_addr6; in do_net_init()
113 if (local_addr == NULL) { in do_net_init()
173 ret = zsock_bind(ctx->sock, local_addr, server_addr_len); in do_net_init()
/Zephyr-latest/tests/net/igmp/src/
Dmain.c435 static void socket_group_with_address(struct in_addr *local_addr, bool do_join) in socket_group_with_address() argument
466 memcpy(&mreqn.imr_address, local_addr, sizeof(mreqn.imr_address)); in socket_group_with_address()
480 -errno, net_sprint_ipv4_addr(local_addr)); in socket_group_with_address()
499 static void socket_group_with_index(struct in_addr *local_addr, bool do_join) in socket_group_with_index() argument
514 mreqn.imr_ifindex = net_if_ipv4_addr_lookup_by_index(local_addr); in socket_group_with_index()
/Zephyr-latest/include/zephyr/drivers/mm/
Drat.h68 uint32_t local_addr; member
/Zephyr-latest/tests/net/ipv4_fragment/src/
Dmain.c532 struct sockaddr local_addr = { 0 }; in setup_udp_handler() local
535 net_ipaddr_copy(&net_sin(&local_addr)->sin_addr, laddr); in setup_udp_handler()
536 local_addr.sa_family = AF_INET; in setup_udp_handler()
541 ret = net_udp_register(AF_INET, &local_addr, &remote_addr, local_port, remote_port, NULL, in setup_udp_handler()
552 struct sockaddr local_addr = { 0 }; in setup_tcp_handler() local
555 net_ipaddr_copy(&net_sin(&local_addr)->sin_addr, laddr); in setup_tcp_handler()
556 local_addr.sa_family = AF_INET; in setup_tcp_handler()
561 ret = net_conn_register(IPPROTO_TCP, AF_INET, &local_addr, &remote_addr, local_port, in setup_tcp_handler()
/Zephyr-latest/include/zephyr/net/
Ddns_resolve.h196 struct sockaddr local_addr; member
/Zephyr-latest/tests/net/dhcpv6/src/
Dmain.c131 struct in6_addr *local_addr; in test_dhcpv6_create_message() local
135 local_addr = net_if_ipv6_get_ll(iface, NET_ADDR_ANY_STATE); in test_dhcpv6_create_message()
136 if (local_addr == NULL) { in test_dhcpv6_create_message()
144 memcpy(&peer_addr, local_addr, sizeof(peer_addr)); in test_dhcpv6_create_message()
153 if (net_ipv6_create(pkt, &peer_addr, local_addr) < 0 || in test_dhcpv6_create_message()
/Zephyr-latest/tests/net/udp/src/
Dmain.c148 const struct sockaddr *local_addr; member
501 user_data.local_addr = (struct sockaddr *)laddr; \ in ZTEST()
/Zephyr-latest/tests/net/ipv6_fragment/src/
Dmain.c1617 struct sockaddr local_addr = { 0 }; in setup_udp_handler() local
1620 net_ipaddr_copy(&net_sin6(&local_addr)->sin6_addr, laddr); in setup_udp_handler()
1621 local_addr.sa_family = AF_INET6; in setup_udp_handler()
1626 ret = net_udp_register(AF_INET6, &remote_addr, &local_addr, in setup_udp_handler()

12