Home
last modified time | relevance | path

Searched refs:remote_addr (Results 1 – 25 of 26) sorted by relevance

12

/Zephyr-Core-3.6.0/subsys/net/ip/
Dconnection.c79 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 …]
Dconnection.h58 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()
Dudp_internal.h117 const struct sockaddr *remote_addr,
Dipv4.c408 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()
Dudp.c129 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()
Dipv6.c731 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()
Dtcp.c3730 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/
Dtftp-client.c39 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/
Dmain.c100 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/
Dconn.c78 &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/
Dipip.c271 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/
Dcapture.c272 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/
Dvirtual.h101 struct net_addr *remote_addr,
219 struct net_addr *remote_addr,
Dcapture.h72 int net_capture_setup(const char *remote_addr, const char *my_local_addr, const char *peer_addr,
Dlwm2m.h159 struct sockaddr remote_addr; member
Dnet_ip.h437 struct net_addr *remote_addr; /**< IPv6/IPv4 remote address */ member
/Zephyr-Core-3.6.0/tests/net/ipv4_fragment/src/
Dmain.c531 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/
Dlwm2m_message_handling.c658 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 …]
Dlwm2m_engine.c143 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()
Dlwm2m_observation.c457 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/
Dvirtual.c314 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/
Dmain.c292 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/
Dmain.c147 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/
Dmain.c1616 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/
Dmain.c1229 struct in6_addr *remote_addr, in setup_ipv6_udp() argument
1242 if (net_ipv6_create(pkt, local_addr, remote_addr)) { in setup_ipv6_udp()

12