Lines Matching refs:newlen
2738 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()
2821 newlen = sizeof(struct sockaddr_in6); in zsock_getsockname_ctx()
2825 &newlen); in zsock_getsockname_ctx()
2831 memcpy(addr, &addr6, MIN(*addrlen, newlen)); in zsock_getsockname_ctx()
2837 *addrlen = newlen; in zsock_getsockname_ctx()