Home
last modified time | relevance | path

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

/Zephyr-Core-2.7.6/subsys/net/ip/
Dconnection.c75 &net_sin6(&conn->remote_addr)->sin6_addr))); in conn_register_debug()
80 &net_sin(&conn->remote_addr)->sin_addr))); in conn_register_debug()
146 const struct sockaddr *remote_addr, in conn_find_handler() argument
163 if (remote_addr) { in conn_find_handler()
169 remote_addr->sa_family == AF_INET6 && in conn_find_handler()
170 remote_addr->sa_family == in conn_find_handler()
171 conn->remote_addr.sa_family) { in conn_find_handler()
173 &net_sin6(remote_addr)->sin6_addr, in conn_find_handler()
174 &net_sin6(&conn->remote_addr)-> in conn_find_handler()
179 remote_addr->sa_family == AF_INET && in conn_find_handler()
[all …]
Dconnection.h55 struct sockaddr remote_addr; member
100 const struct sockaddr *remote_addr,
110 const struct sockaddr *remote_addr, in net_conn_register() argument
121 ARG_UNUSED(remote_addr); in net_conn_register()
Dipv4.c366 struct net_addr remote_addr; in net_ipv4_input() local
368 remote_addr.family = AF_INET; in net_ipv4_input()
369 net_ipaddr_copy(&remote_addr.in_addr, &hdr->src); in net_ipv4_input()
376 return net_virtual_input(net_pkt_iface(pkt), &remote_addr, in net_ipv4_input()
Dudp_internal.h116 const struct sockaddr *remote_addr,
Dudp.c128 const struct sockaddr *remote_addr, in net_udp_register() argument
137 return net_conn_register(IPPROTO_UDP, family, remote_addr, local_addr, in net_udp_register()
Dipv6.c682 struct net_addr remote_addr; in net_ipv6_input() local
684 remote_addr.family = AF_INET6; in net_ipv6_input()
685 net_ipaddr_copy(&remote_addr.in6_addr, &hdr->src); in net_ipv6_input()
692 return net_virtual_input(pkt_iface, &remote_addr, pkt); in net_ipv6_input()
Dtcp2.c2259 const struct sockaddr *remote_addr, in net_tcp_connect() argument
2273 remote_addr->sa_family, in net_tcp_connect()
2274 (const void *)&net_sin(remote_addr)->sin_addr))); in net_tcp_connect()
2299 &net_sin(remote_addr)->sin_addr); in net_tcp_connect()
2302 &net_sin(remote_addr)->sin_addr); in net_tcp_connect()
2317 &net_sin6(remote_addr)->sin6_addr); in net_tcp_connect()
2320 &net_sin6(remote_addr)->sin6_addr); in net_tcp_connect()
2342 remote_addr, local_addr, in net_tcp_connect()
Dnet_shell.c1419 &net_sin6(&conn->remote_addr)->sin6_addr), in conn_handler_cb()
1420 ntohs(net_sin6(&conn->remote_addr)->sin6_port)); in conn_handler_cb()
1431 &net_sin(&conn->remote_addr)->sin_addr), in conn_handler_cb()
1432 ntohs(net_sin(&conn->remote_addr)->sin_port)); in conn_handler_cb()
/Zephyr-Core-2.7.6/subsys/net/l2/virtual/ipip/
Dipip.c282 struct net_addr *remote_addr) in verify_remote_addr() argument
284 if (ctx->family != remote_addr->family) { in verify_remote_addr()
289 if (memcmp(&ctx->peer.in_addr, &remote_addr->in_addr, in verify_remote_addr()
294 if (memcmp(&ctx->peer.in6_addr, &remote_addr->in6_addr, in verify_remote_addr()
305 struct net_addr *remote_addr, in interface_input() argument
314 if (!verify_remote_addr(ctx, remote_addr)) { in interface_input()
/Zephyr-Core-2.7.6/subsys/net/lib/capture/
Dcapture.c277 int net_capture_setup(const char *remote_addr, const char *my_local_addr, in net_capture_setup() argument
294 if (dev == NULL || remote_addr == NULL || my_local_addr == NULL || in net_capture_setup()
300 if (!net_ipaddr_parse(remote_addr, strlen(remote_addr), &remote)) { in net_capture_setup()
302 "remote", remote_addr); in net_capture_setup()
343 NET_ERR("Remote address %s unreachable", remote_addr); in net_capture_setup()
372 remote_addr, net_if_get_by_iface(ipip_iface), ret); in net_capture_setup()
/Zephyr-Core-2.7.6/include/net/
Dvirtual.h101 struct net_addr *remote_addr,
219 struct net_addr *remote_addr,
Dcapture.h71 int net_capture_setup(const char *remote_addr, const char *my_local_addr,
Dlwm2m.h76 struct sockaddr remote_addr; member
Dnet_ip.h423 struct net_addr *remote_addr; /**< IPv6/IPv4 remote address */ member
/Zephyr-Core-2.7.6/subsys/net/l2/virtual/
Dvirtual.c320 struct net_addr *remote_addr, in net_virtual_input() argument
362 remote_addr, pkt); in net_virtual_input()
/Zephyr-Core-2.7.6/tests/net/ipv6_fragment/src/
Dmain.c1421 struct sockaddr remote_addr = { 0 }; in setup_udp_handler() local
1428 net_ipaddr_copy(&net_sin6(&remote_addr)->sin6_addr, raddr); in setup_udp_handler()
1429 remote_addr.sa_family = AF_INET6; in setup_udp_handler()
1431 ret = net_udp_register(AF_INET6, &remote_addr, &local_addr, in setup_udp_handler()
/Zephyr-Core-2.7.6/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-2.7.6/tests/net/udp/src/
Dmain.c147 const struct sockaddr *remote_addr; member
500 user_data.remote_addr = (struct sockaddr *)raddr; \ in test_udp()
/Zephyr-Core-2.7.6/subsys/net/lib/lwm2m/
Dlwm2m_obj_firmware_pull.c389 ret = lwm2m_parse_peerinfo(server_addr, &firmware_ctx.remote_addr, in firmware_transfer()
Dlwm2m_engine.c421 lwm2m_sprint_ip_addr(&msg->ctx->remote_addr))); in engine_add_observer()
522 log_strdup(lwm2m_sprint_ip_addr(&msg->ctx->remote_addr))); in engine_add_observer()
956 r = coap_pending_init(msg->pending, &msg->cpkt, &msg->ctx->remote_addr, in lwm2m_init_message()
3974 &msg->ctx->remote_addr, in lwm2m_response_promote_to_con()
4233 log_strdup(lwm2m_sprint_ip_addr(&ctx->remote_addr)), in generate_notify_message()
4682 client_ctx->sock_fd = socket(client_ctx->remote_addr.sa_family, in lwm2m_socket_start()
4687 client_ctx->sock_fd = socket(client_ctx->remote_addr.sa_family, in lwm2m_socket_start()
4713 if (connect(client_ctx->sock_fd, &client_ctx->remote_addr, in lwm2m_socket_start()
4852 ret = lwm2m_parse_peerinfo(url, &client_ctx->remote_addr, in lwm2m_engine_start()
Dlwm2m_rd_client.c812 log_strdup(lwm2m_sprint_ip_addr(&client.ctx->remote_addr))); in sm_send_registration()
/Zephyr-Core-2.7.6/tests/net/ipv6/src/
Dmain.c1107 struct in6_addr *remote_addr, in setup_ipv6_udp() argument
1120 if (net_ipv6_create(pkt, local_addr, remote_addr)) { in setup_ipv6_udp()