/Zephyr-Core-3.6.0/subsys/net/ip/ |
D | connection.c | 79 net_sprint_ipv6_addr(&net_sin6(&conn->remote_addr)->sin6_addr)); in conn_register_debug() 83 net_sprint_ipv4_addr(&net_sin(&conn->remote_addr)->sin_addr)); in conn_register_debug() 159 const struct sockaddr *remote_addr, in conn_find_handler() argument 216 if (remote_addr) { in conn_find_handler() 222 remote_addr->sa_family == AF_INET6 && in conn_find_handler() 223 remote_addr->sa_family == in conn_find_handler() 224 conn->remote_addr.sa_family) { in conn_find_handler() 226 &net_sin6(remote_addr)->sin6_addr, in conn_find_handler() 227 &net_sin6(&conn->remote_addr)-> in conn_find_handler() 232 remote_addr->sa_family == AF_INET && in conn_find_handler() [all …]
|
D | connection.h | 58 struct sockaddr remote_addr; member 107 const struct sockaddr *remote_addr, 117 const struct sockaddr *remote_addr, in net_conn_register() argument 128 ARG_UNUSED(remote_addr); in net_conn_register()
|
D | udp_internal.h | 117 const struct sockaddr *remote_addr,
|
D | ipv4.c | 408 struct net_addr remote_addr; in net_ipv4_input() local 410 remote_addr.family = AF_INET; in net_ipv4_input() 411 net_ipv4_addr_copy_raw((uint8_t *)&remote_addr.in_addr, hdr->src); in net_ipv4_input() 418 return net_virtual_input(net_pkt_iface(pkt), &remote_addr, in net_ipv4_input()
|
D | udp.c | 129 const struct sockaddr *remote_addr, in net_udp_register() argument 138 return net_conn_register(IPPROTO_UDP, family, remote_addr, local_addr, in net_udp_register()
|
D | ipv6.c | 731 struct net_addr remote_addr; in net_ipv6_input() local 733 remote_addr.family = AF_INET6; in net_ipv6_input() 734 net_ipv6_addr_copy_raw((uint8_t *)&remote_addr.in6_addr, hdr->src); in net_ipv6_input() 741 return net_virtual_input(pkt_iface, &remote_addr, pkt); in net_ipv6_input()
|
D | tcp.c | 3730 const struct sockaddr *remote_addr, in net_tcp_connect() argument 3742 net_sprint_addr(remote_addr->sa_family, in net_tcp_connect() 3743 (const void *)&net_sin(remote_addr)->sin_addr)); in net_tcp_connect() 3776 &net_sin(remote_addr)->sin_addr); in net_tcp_connect() 3783 &net_sin(remote_addr)->sin_addr); in net_tcp_connect() 3805 &net_sin6(remote_addr)->sin6_addr); in net_tcp_connect() 3812 &net_sin6(remote_addr)->sin6_addr); in net_tcp_connect() 3834 remote_addr, local_addr, in net_tcp_connect()
|
/Zephyr-Core-3.6.0/samples/net/tftp_client/src/ |
D | tftp-client.c | 39 struct sockaddr remote_addr; in tftp_init() local 53 memcpy(&remote_addr, res->ai_addr, sizeof(remote_addr)); in tftp_init() 57 memcpy(&client.server, &remote_addr, sizeof(client.server)); in tftp_init()
|
/Zephyr-Core-3.6.0/tests/net/lib/lwm2m/lwm2m_engine/src/ |
D | main.c | 100 ctx.remote_addr.sa_family = AF_INET; in ZTEST() 131 ctx.remote_addr.sa_family = AF_INET; in ZTEST() 156 ctx.remote_addr.sa_family = AF_INET; in ZTEST() 195 ctx.remote_addr.sa_family = AF_INET; in ZTEST() 213 ctx.remote_addr.sa_family = AF_INET; in ZTEST() 236 ctx.remote_addr.sa_family = AF_INET; in ZTEST() 348 ctx.remote_addr.sa_family = AF_INET; in ZTEST() 377 ctx.remote_addr.sa_family = AF_INET; in ZTEST() 400 ctx.remote_addr.sa_family = AF_INET; in ZTEST() 431 ctx.remote_addr.sa_family = AF_INET; in ZTEST() [all …]
|
/Zephyr-Core-3.6.0/subsys/net/lib/shell/ |
D | conn.c | 78 &net_sin6(&conn->remote_addr)->sin6_addr), in conn_handler_cb() 79 ntohs(net_sin6(&conn->remote_addr)->sin6_port)); in conn_handler_cb() 88 &net_sin(&conn->remote_addr)->sin_addr), in conn_handler_cb() 89 ntohs(net_sin(&conn->remote_addr)->sin_port)); in conn_handler_cb()
|
/Zephyr-Core-3.6.0/subsys/net/l2/virtual/ipip/ |
D | ipip.c | 271 struct net_addr *remote_addr) in verify_remote_addr() argument 273 if (ctx->family != remote_addr->family) { in verify_remote_addr() 278 if (memcmp(&ctx->peer.in_addr, &remote_addr->in_addr, in verify_remote_addr() 283 if (memcmp(&ctx->peer.in6_addr, &remote_addr->in6_addr, in verify_remote_addr() 294 struct net_addr *remote_addr, in interface_input() argument 303 if (!verify_remote_addr(ctx, remote_addr)) { in interface_input()
|
/Zephyr-Core-3.6.0/subsys/net/lib/capture/ |
D | capture.c | 272 int net_capture_setup(const char *remote_addr, const char *my_local_addr, in net_capture_setup() argument 288 if (dev == NULL || remote_addr == NULL || my_local_addr == NULL || in net_capture_setup() 294 if (!net_ipaddr_parse(remote_addr, strlen(remote_addr), &remote)) { in net_capture_setup() 296 "remote", remote_addr); in net_capture_setup() 333 NET_ERR("Remote address %s unreachable", remote_addr); in net_capture_setup() 362 remote_addr, net_if_get_by_iface(ipip_iface), ret); in net_capture_setup()
|
/Zephyr-Core-3.6.0/include/zephyr/net/ |
D | virtual.h | 101 struct net_addr *remote_addr, 219 struct net_addr *remote_addr,
|
D | capture.h | 72 int net_capture_setup(const char *remote_addr, const char *my_local_addr, const char *peer_addr,
|
D | lwm2m.h | 159 struct sockaddr remote_addr; member
|
D | net_ip.h | 437 struct net_addr *remote_addr; /**< IPv6/IPv4 remote address */ member
|
/Zephyr-Core-3.6.0/tests/net/ipv4_fragment/src/ |
D | main.c | 531 struct sockaddr remote_addr = { 0 }; in setup_udp_handler() local 538 net_ipaddr_copy(&net_sin(&remote_addr)->sin_addr, raddr); in setup_udp_handler() 539 remote_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() 551 struct sockaddr remote_addr = { 0 }; in setup_tcp_handler() local 558 net_ipaddr_copy(&net_sin(&remote_addr)->sin_addr, raddr); in setup_tcp_handler() 559 remote_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-Core-3.6.0/subsys/net/lib/lwm2m/ |
D | lwm2m_message_handling.c | 658 r = coap_pending_init(msg->pending, &msg->cpkt, &msg->ctx->remote_addr, NULL); in lwm2m_init_message() 2613 ret = coap_pending_init(msg->pending, &msg->cpkt, &msg->ctx->remote_addr, NULL); in lwm2m_response_promote_to_con() 3042 lwm2m_sprint_ip_addr(&ctx->remote_addr), (long long)k_uptime_get()); in generate_notify_message() 3054 sprint_token(obs->token, obs->tkl), lwm2m_sprint_ip_addr(&ctx->remote_addr), in generate_notify_message() 3283 (void)memset(&client_ctx->remote_addr, 0, sizeof(client_ctx->remote_addr)); in lwm2m_parse_peerinfo() 3286 client_ctx->remote_addr.sa_family = AF_INET6; in lwm2m_parse_peerinfo() 3288 &((struct sockaddr_in6 *)&client_ctx->remote_addr)->sin6_addr); in lwm2m_parse_peerinfo() 3291 client_ctx->remote_addr.sa_family = AF_INET; in lwm2m_parse_peerinfo() 3293 &((struct sockaddr_in *)&client_ctx->remote_addr)->sin_addr); in lwm2m_parse_peerinfo() 3316 memcpy(&client_ctx->remote_addr, res->ai_addr, sizeof(client_ctx->remote_addr)); in lwm2m_parse_peerinfo() [all …]
|
D | lwm2m_engine.c | 143 client_ctx->sock_fd = zsock_socket(client_ctx->remote_addr.sa_family, in lwm2m_open_socket() 147 zsock_socket(client_ctx->remote_addr.sa_family, SOCK_DGRAM, in lwm2m_open_socket() 1175 if ((client_ctx->remote_addr).sa_family == AF_INET) { in lwm2m_socket_start() 1177 } else if ((client_ctx->remote_addr).sa_family == AF_INET6) { in lwm2m_socket_start() 1184 if (zsock_connect(client_ctx->sock_fd, &client_ctx->remote_addr, addr_len) < 0) { in lwm2m_socket_start()
|
D | lwm2m_observation.c | 457 lwm2m_sprint_ip_addr(&ctx->remote_addr)); in engine_observe_node_init() 608 lwm2m_sprint_ip_addr(&msg->ctx->remote_addr)); in engine_add_observer() 696 lwm2m_sprint_ip_addr(&msg->ctx->remote_addr)); in engine_add_composite_observer()
|
/Zephyr-Core-3.6.0/subsys/net/l2/virtual/ |
D | virtual.c | 314 struct net_addr *remote_addr, in net_virtual_input() argument 356 remote_addr, pkt); in net_virtual_input()
|
/Zephyr-Core-3.6.0/tests/net/route_mcast/src/ |
D | main.c | 292 struct in6_addr *remote_addr, in setup_ipv6_udp() argument 307 res = net_ipv6_create(pkt, src_addr, remote_addr); in setup_ipv6_udp()
|
/Zephyr-Core-3.6.0/tests/net/udp/src/ |
D | main.c | 147 const struct sockaddr *remote_addr; member 500 user_data.remote_addr = (struct sockaddr *)raddr; \ in ZTEST()
|
/Zephyr-Core-3.6.0/tests/net/ipv6_fragment/src/ |
D | main.c | 1616 struct sockaddr remote_addr = { 0 }; in setup_udp_handler() local 1623 net_ipaddr_copy(&net_sin6(&remote_addr)->sin6_addr, raddr); in setup_udp_handler() 1624 remote_addr.sa_family = AF_INET6; in setup_udp_handler() 1626 ret = net_udp_register(AF_INET6, &remote_addr, &local_addr, in setup_udp_handler()
|
/Zephyr-Core-3.6.0/tests/net/ipv6/src/ |
D | main.c | 1229 struct in6_addr *remote_addr, in setup_ipv6_udp() argument 1242 if (net_ipv6_create(pkt, local_addr, remote_addr)) { in setup_ipv6_udp()
|