Home
last modified time | relevance | path

Searched refs:newlen (Results 1 – 3 of 3) sorted by relevance

/Zephyr-latest/subsys/net/lib/sockets/
Dsockets_inet.c2738 socklen_t newlen = 0; in zsock_getpeername_ctx() local
2763 newlen = sizeof(struct sockaddr_in); in zsock_getpeername_ctx()
2765 memcpy(addr, &addr4, MIN(*addrlen, newlen)); in zsock_getpeername_ctx()
2774 newlen = sizeof(struct sockaddr_in6); in zsock_getpeername_ctx()
2776 memcpy(addr, &addr6, MIN(*addrlen, newlen)); in zsock_getpeername_ctx()
2782 *addrlen = newlen; in zsock_getpeername_ctx()
2790 socklen_t newlen = 0; in zsock_getsockname_ctx() local
2801 newlen = sizeof(struct sockaddr_in); in zsock_getsockname_ctx()
2805 &newlen); in zsock_getsockname_ctx()
2811 memcpy(addr, &addr4, MIN(*addrlen, newlen)); in zsock_getsockname_ctx()
[all …]
/Zephyr-latest/subsys/net/ip/
Dnet_context.c3735 socklen_t newlen; in net_context_get_local_addr() local
3738 newlen = MIN(*addrlen, sizeof(struct sockaddr_in)); in net_context_get_local_addr()
3747 newlen = MIN(*addrlen, sizeof(struct sockaddr_in6)); in net_context_get_local_addr()
3758 *addrlen = newlen; in net_context_get_local_addr()
Dtcp.c249 socklen_t newlen = ctx->local.family == AF_INET ? in net_tcp_endpoint_copy() local
277 memcpy(local, &conn->src.sa, newlen); in net_tcp_endpoint_copy()
282 memcpy(peer, &conn->dst.sa, newlen); in net_tcp_endpoint_copy()