Lines Matching refs:u

27     size = offsetof(nxt_sockaddr_t, u) + ls->socklen + ls->address_length;  in nxt_sockaddr_cache_alloc()
33 nxt_memzero(sa, offsetof(nxt_sockaddr_t, u.sockaddr.sa_data[1])); in nxt_sockaddr_cache_alloc()
45 sa->u.sockaddr.sa_family = ls->sockaddr->u.sockaddr.sa_family; in nxt_sockaddr_cache_alloc()
69 size = offsetof(nxt_sockaddr_t, u) + socklen + address_length; in nxt_sockaddr_alloc()
150 nxt_memcpy(&sa->u.sockaddr, sockaddr, copy); in nxt_sockaddr_create()
155 sa->u.sockaddr.sa_family = AF_UNIX; in nxt_sockaddr_create()
171 length = offsetof(nxt_sockaddr_t, u) + src->socklen; in nxt_sockaddr_copy()
235 offset = offsetof(nxt_sockaddr_t, u) + sa->socklen; in nxt_sockaddr_text()
242 switch (sa->u.sockaddr.sa_family) { in nxt_sockaddr_text()
247 octet = (u_char *) &sa->u.sockaddr_in.sin_addr; in nxt_sockaddr_text()
255 port = sa->u.sockaddr_in.sin_port; in nxt_sockaddr_text()
267 p = nxt_inet6_ntop(sa->u.sockaddr_in6.sin6_addr.s6_addr, p, end); in nxt_sockaddr_text()
274 port = sa->u.sockaddr_in6.sin6_port; in nxt_sockaddr_text()
285 p = (u_char *) sa->u.sockaddr_un.sun_path; in nxt_sockaddr_text()
330 switch (sa->u.sockaddr.sa_family) { in nxt_sockaddr_port_number()
335 port = sa->u.sockaddr_in6.sin6_port; in nxt_sockaddr_port_number()
348 port = sa->u.sockaddr_in.sin_port; in nxt_sockaddr_port_number()
367 if (sa1->u.sockaddr.sa_family != sa2->u.sockaddr.sa_family) { in nxt_sockaddr_cmp()
376 switch (sa1->u.sockaddr.sa_family) { in nxt_sockaddr_cmp()
381 if (sa1->u.sockaddr_in6.sin6_port != sa2->u.sockaddr_in6.sin6_port) { in nxt_sockaddr_cmp()
385 if (nxt_memcmp(&sa1->u.sockaddr_in6.sin6_addr, in nxt_sockaddr_cmp()
386 &sa2->u.sockaddr_in6.sin6_addr, 16) in nxt_sockaddr_cmp()
404 if (nxt_memcmp(&sa1->u.sockaddr_un.sun_path, in nxt_sockaddr_cmp()
405 &sa2->u.sockaddr_un.sun_path, length) in nxt_sockaddr_cmp()
417 if (sa1->u.sockaddr_in.sin_port != sa2->u.sockaddr_in.sin_port) { in nxt_sockaddr_cmp()
421 if (sa1->u.sockaddr_in.sin_addr.s_addr in nxt_sockaddr_cmp()
422 != sa2->u.sockaddr_in.sin_addr.s_addr) in nxt_sockaddr_cmp()
531 && sa->u.sockaddr.sa_family != AF_UNIX in nxt_sockaddr_parse()
625 sa->u.sockaddr_un.sun_family = AF_UNIX; in nxt_sockaddr_unix_parse()
626 nxt_memcpy(sa->u.sockaddr_un.sun_path, path, length); in nxt_sockaddr_unix_parse()
694 ret = nxt_inet6_addr(&sa->u.sockaddr_in6.sin6_addr, start, end - start); in nxt_sockaddr_inet6_parse()
701 sa->u.sockaddr_in6.sin6_family = AF_INET6; in nxt_sockaddr_inet6_parse()
702 sa->u.sockaddr_in6.sin6_port = htons((in_port_t) port); in nxt_sockaddr_inet6_parse()
764 sa->u.sockaddr_in.sin_family = AF_INET; in nxt_sockaddr_inet_parse()
765 sa->u.sockaddr_in.sin_addr.s_addr = inaddr; in nxt_sockaddr_inet_parse()
766 sa->u.sockaddr_in.sin_port = htons((in_port_t) port); in nxt_sockaddr_inet_parse()