/Zephyr-latest/tests/net/route/src/ |
D | main.c | 51 static struct in6_addr peer_addr = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0, variable 346 zassert_true(net_test_send_ns(peer_iface, &peer_addr)); in test_populate_nbr_cache() 349 &peer_addr, in test_populate_nbr_cache() 372 zassert_true(net_test_nbr_lookup_ok(my_iface, &peer_addr)); in test_populate_nbr_cache() 379 &peer_addr, in test_route_add() 392 &peer_addr, in test_route_update() 427 zassert_true(net_ipv6_addr_cmp(nexthop, &peer_addr), in test_route_get_nexthop() 444 entry = net_route_lookup(my_iface, &peer_addr); in test_route_lookup_fail() 451 struct in6_addr *nexthop = &peer_addr; in test_route_del_nexthop() 460 struct in6_addr *nexthop = &peer_addr; in test_route_del_nexthop_again() [all …]
|
/Zephyr-latest/subsys/net/lib/zperf/ |
D | zperf_udp_uploader.c | 259 if (param->peer_addr.sa_family == AF_INET) { in udp_upload() 260 if (net_ipv4_is_addr_mcast(&net_sin(¶m->peer_addr)->sin_addr)) { in udp_upload() 263 } else if (param->peer_addr.sa_family == AF_INET6) { in udp_upload() 264 if (net_ipv6_is_addr_mcast(&net_sin6(¶m->peer_addr)->sin6_addr)) { in udp_upload() 297 if (param->peer_addr.sa_family == AF_INET) { in zperf_udp_upload() 298 port = ntohs(net_sin(¶m->peer_addr)->sin_port); in zperf_udp_upload() 299 } else if (param->peer_addr.sa_family == AF_INET6) { in zperf_udp_upload() 300 port = ntohs(net_sin6(¶m->peer_addr)->sin6_port); in zperf_udp_upload() 303 param->peer_addr.sa_family); in zperf_udp_upload() 307 sock = zperf_prepare_upload_sock(¶m->peer_addr, param->options.tos, in zperf_udp_upload()
|
D | zperf_common.c | 112 int zperf_prepare_upload_sock(const struct sockaddr *peer_addr, uint8_t tos, in zperf_prepare_upload_sock() argument 115 socklen_t addrlen = peer_addr->sa_family == AF_INET6 ? in zperf_prepare_upload_sock() 122 switch (peer_addr->sa_family) { in zperf_prepare_upload_sock() 170 LOG_ERR("Invalid address family (%d)", peer_addr->sa_family); in zperf_prepare_upload_sock() 203 ret = zsock_connect(sock, peer_addr, addrlen); in zperf_prepare_upload_sock()
|
D | zperf_tcp_uploader.c | 135 sock = zperf_prepare_upload_sock(¶m->peer_addr, param->options.tos, in zperf_tcp_upload() 161 sock = zperf_prepare_upload_sock(¶m.peer_addr, param.options.tos, in tcp_upload_async_work()
|
D | zperf_internal.h | 106 int zperf_prepare_upload_sock(const struct sockaddr *peer_addr, uint8_t tos,
|
D | zperf_shell.c | 724 if (IS_ENABLED(CONFIG_NET_IPV6) && param->peer_addr.sa_family == AF_INET6) { in execute_upload() 726 (struct sockaddr_in6 *)¶m->peer_addr; in execute_upload() 982 memcpy(¶m.peer_addr, &ipv6, sizeof(ipv6)); in shell_cmd_upload() 1001 memcpy(¶m.peer_addr, &ipv4, sizeof(ipv4)); in shell_cmd_upload() 1023 memcpy(¶m.peer_addr, &ipv4, sizeof(ipv4)); in shell_cmd_upload() 1029 memcpy(¶m.peer_addr, &ipv6, sizeof(ipv6)); in shell_cmd_upload() 1204 memcpy(¶m.peer_addr, &in6_addr_dst, sizeof(in6_addr_dst)); in shell_cmd_upload2() 1216 memcpy(¶m.peer_addr, &in4_addr_dst, sizeof(in4_addr_dst)); in shell_cmd_upload2()
|
/Zephyr-latest/tests/net/virtual/src/ |
D | main.c | 72 struct sockaddr peer_addr; variable 493 &peer_addr); in test_address_setup() 709 params.family = peer_addr.sa_family; in ZTEST() 712 &net_sin(&peer_addr)->sin_addr); in ZTEST() 715 &net_sin6(&peer_addr)->sin6_addr); in ZTEST() 761 zassert_equal(params.family, peer_addr.sa_family, in ZTEST() 763 peer_addr.sa_family, params.family); in ZTEST() 766 &net_sin(&peer_addr)->sin_addr, in ZTEST() 771 &net_sin6(&peer_addr)->sin6_addr, in ZTEST() 825 params.family = peer_addr.sa_family; in ZTEST() [all …]
|
/Zephyr-latest/subsys/net/l2/ppp/ |
D | ipv6cp.c | 245 struct in6_addr peer_addr; in ipv6cp_up() local 262 setup_iid_address(ctx->ipv6cp.peer_options.iid, &peer_addr); in ipv6cp_up() 270 nbr = net_ipv6_nbr_add(ctx->iface, &peer_addr, &peer_lladdr, in ipv6cp_up() 275 net_sprint_addr(AF_INET6, (const void *)&peer_addr)); in ipv6cp_up() 286 addr_str = net_addr_ntop(AF_INET6, &peer_addr, dst, in ipv6cp_up() 302 struct in6_addr peer_addr; in ipv6cp_down() local 318 setup_iid_address(ctx->ipv6cp.peer_options.iid, &peer_addr); in ipv6cp_down() 326 ret = net_ipv6_nbr_rm(ctx->iface, &peer_addr); in ipv6cp_down() 330 net_sprint_addr(AF_INET6, (const void *)&peer_addr)); in ipv6cp_down() 341 addr_str = net_addr_ntop(AF_INET6, &peer_addr, dst, in ipv6cp_down()
|
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/ |
D | ull_central.c | 79 uint8_t const *const peer_addr, uint8_t own_addr_type, in ll_create_connection() argument 85 uint8_t const *const peer_addr, uint8_t own_addr_type, in ll_create_connection() 119 peer_addr_type, peer_addr)) { in ll_create_connection() 329 (void)memcpy(conn->peer_id_addr, peer_addr, sizeof(conn->peer_id_addr)); in ll_create_connection() 384 lll->rl_idx = ull_filter_rl_find(peer_addr_type, peer_addr, in ll_create_connection() 400 memcpy(lll->adv_addr, peer_addr, BDADDR_SIZE); in ll_create_connection() 678 uint8_t peer_addr[BDADDR_SIZE]; local 699 memcpy(peer_addr, &pdu_tx->connect_ind.adv_addr[0], BDADDR_SIZE); 728 &cc->peer_addr[0]); 733 memcpy(&cc->peer_rpa[0], &peer_addr[0], BDADDR_SIZE); [all …]
|
D | ull_adv_types.h | 52 uint8_t peer_addr[BDADDR_SIZE]; member
|
D | ull_peripheral.c | 76 uint8_t peer_addr[BDADDR_SIZE]; local 103 memcpy(peer_addr, pdu_adv->connect_ind.init_addr, BDADDR_SIZE); 117 memcpy(peer_id_addr, peer_addr, BDADDR_SIZE); 270 memcpy(cc->peer_rpa, peer_addr, BDADDR_SIZE); 277 memcpy(cc->peer_addr, peer_id_addr, BDADDR_SIZE);
|
D | ull_conn_types.h | 272 uint8_t peer_addr[BDADDR_SIZE]; member
|
/Zephyr-latest/tests/net/ipv6/src/ |
D | main.c | 51 static struct in6_addr peer_addr = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0, variable 466 nbr = net_ipv6_nbr_add(TEST_NET_IF, &peer_addr, &lladdr, in add_neighbor() 469 net_sprint_ipv6_addr(&peer_addr)); in add_neighbor() 488 net_ipv6_nbr_rm(TEST_NET_IF, &peer_addr); in rm_neighbor() 558 nbr = net_ipv6_nbr_lookup(TEST_NET_IF, &peer_addr); in nbr_lookup_fail() 560 net_sprint_ipv6_addr(&peer_addr)); in nbr_lookup_fail() 571 nbr = net_ipv6_nbr_lookup(TEST_NET_IF, &peer_addr); in nbr_lookup_ok() 573 net_sprint_ipv6_addr(&peer_addr)); in nbr_lookup_ok() 1415 ret = net_ipv6_send_na(iface, &peer_addr, &all_nodes_mcast, in ZTEST() 1416 &peer_addr, flags); in ZTEST() [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/host/privacy/device/src/ |
D | test_undirected_central.c | 128 static void check_addresses(const bt_addr_le_t *peer_addr) in check_addresses() argument 136 addr_equal = bt_addr_le_eq(&peer_identity, peer_addr); in check_addresses() 142 addr_equal = bt_addr_le_eq(&peer_identity, peer_addr); in check_addresses()
|
/Zephyr-latest/drivers/wifi/eswifi/ |
D | eswifi_offload.h | 46 struct sockaddr peer_addr; member
|
D | eswifi_offload.c | 124 socket->peer_addr = *addr; in eswifi_off_connect() 319 socket->peer_addr = *dst_addr; in eswifi_off_sendto() 487 struct sockaddr_in *peer = net_sin(&socket->peer_addr); in eswifi_offload_async_msg() 498 memcpy(&socket->context->remote, &socket->peer_addr, in eswifi_offload_async_msg() 506 &socket->peer_addr, in eswifi_offload_async_msg()
|
/Zephyr-latest/subsys/net/lib/sockets/ |
D | sockets_tls.c | 108 struct sockaddr peer_addr; member 551 const struct sockaddr *peer_addr) in peer_addr_cmp() argument 553 if (addr->sa_family != peer_addr->sa_family) { in peer_addr_cmp() 557 if (IS_ENABLED(CONFIG_NET_IPV6) && peer_addr->sa_family == AF_INET6) { in peer_addr_cmp() 558 struct sockaddr_in6 *addr1 = net_sin6(peer_addr); in peer_addr_cmp() 563 } else if (IS_ENABLED(CONFIG_NET_IPV4) && peer_addr->sa_family == AF_INET) { in peer_addr_cmp() 564 struct sockaddr_in *addr1 = net_sin(peer_addr); in peer_addr_cmp() 574 static int tls_session_save(const struct sockaddr *peer_addr, in tls_session_save() argument 588 if (peer_addr_cmp(&client_cache[i].peer_addr, peer_addr)) { in tls_session_save() 629 memcpy(&entry->peer_addr, peer_addr, sizeof(*peer_addr)); in tls_session_save() [all …]
|
/Zephyr-latest/tests/net/socket/misc/src/ |
D | main.c | 367 struct sockaddr peer_addr; in test_getpeername() local 388 ret = zsock_getpeername(sock_c, &peer_addr, &peer_addr_len); in test_getpeername() 395 memset(&peer_addr, 0, sizeof(peer_addr)); in test_getpeername() 397 ret = zsock_getpeername(sock_c, &peer_addr, &peer_addr_len); in test_getpeername() 399 zassert_mem_equal(&peer_addr, &srv_addr, ADDR_SIZE(family), in test_getpeername() 418 ret = zsock_getpeername(sock_c, &peer_addr, &peer_addr_len); in test_getpeername() 425 memset(&peer_addr, 0, sizeof(peer_addr)); in test_getpeername() 427 ret = zsock_getpeername(sock_c, &peer_addr, &peer_addr_len); in test_getpeername() 429 zassert_mem_equal(&peer_addr, &srv_addr, ADDR_SIZE(family), in test_getpeername()
|
/Zephyr-latest/subsys/bluetooth/host/ |
D | hci_core.c | 722 bt_addr_le_copy(&cp->peer_addr, BT_ADDR_LE_ANY); in bt_le_create_conn_ext() 725 const bt_addr_le_t *peer_addr = &conn->le.dst; in bt_le_create_conn_ext() local 730 peer_addr = &conn->le.resp_addr; in bt_le_create_conn_ext() 733 bt_addr_le_copy(&cp->peer_addr, peer_addr); in bt_le_create_conn_ext() 792 bt_addr_le_copy(&cp->peer_addr, &conn->le.dst); in bt_le_create_conn_synced() 843 bt_addr_le_copy(&cp->peer_addr, BT_ADDR_LE_ANY); in bt_le_create_conn_legacy() 846 const bt_addr_le_t *peer_addr = &conn->le.dst; in bt_le_create_conn_legacy() local 851 peer_addr = &conn->le.resp_addr; in bt_le_create_conn_legacy() 854 bt_addr_le_copy(&cp->peer_addr, peer_addr); in bt_le_create_conn_legacy() 1150 static struct bt_conn *find_pending_connect(uint8_t role, bt_addr_le_t *peer_addr) in find_pending_connect() argument [all …]
|
/Zephyr-latest/include/zephyr/net/ |
D | zperf.h | 39 struct sockaddr peer_addr; member
|
D | capture.h | 75 int net_capture_setup(const char *remote_addr, const char *my_local_addr, const char *peer_addr,
|
/Zephyr-latest/subsys/net/lib/capture/ |
D | capture.c | 279 const char *peer_addr, const struct device **dev) in net_capture_setup() argument 295 peer_addr == NULL) { in net_capture_setup() 307 if (!net_ipaddr_parse(peer_addr, strlen(peer_addr), &peer)) { in net_capture_setup() 309 "peer", peer_addr); in net_capture_setup()
|
/Zephyr-latest/drivers/bluetooth/hci/ |
D | ipm_stm32wb.c | 149 if (bt_addr_eq(&evt->peer_addr.a, BT_ADDR_NONE)) { in tryfix_event() 150 LOG_WRN("Invalid peer addr %s", bt_addr_le_str(&evt->peer_addr)); in tryfix_event() 151 bt_addr_copy(&evt->peer_addr.a, &evt->peer_rpa); in tryfix_event() 152 evt->peer_addr.type = BT_ADDR_LE_RANDOM; in tryfix_event()
|
/Zephyr-latest/samples/bluetooth/encrypted_advertising/central/src/ |
D | central_ead.c | 35 static bt_addr_le_t peer_addr; variable 112 if (!bt_addr_le_eq(addr, &peer_addr)) { in device_found() 368 bt_addr_le_copy(&peer_addr, identity); in identity_resolved()
|
/Zephyr-latest/tests/net/dhcpv6/src/ |
D | main.c | 132 struct in6_addr peer_addr; in test_dhcpv6_create_message() local 144 memcpy(&peer_addr, local_addr, sizeof(peer_addr)); in test_dhcpv6_create_message() 145 peer_addr.s6_addr[15] = ~peer_addr.s6_addr[15]; in test_dhcpv6_create_message() 153 if (net_ipv6_create(pkt, &peer_addr, local_addr) < 0 || in test_dhcpv6_create_message()
|