Lines Matching refs:buf

11 static u_char *nxt_inet6_ntop(u_char *addr, u_char *buf, u_char *end);
197 ret = getsockname(s, &sockaddr.buf, &socklen); in nxt_getsockname()
201 switch (sockaddr.buf.sa_family) { in nxt_getsockname()
223 return nxt_sockaddr_create(mp, &sockaddr.buf, socklen, length); in nxt_getsockname()
437 nxt_sockaddr_ntop(nxt_sockaddr_t *sa, u_char *buf, u_char *end, nxt_bool_t port) in nxt_sockaddr_ntop() argument
447 p = nxt_sprintf(buf, end, "%ud.%ud.%ud.%ud:%d", in nxt_sockaddr_ntop()
451 p = nxt_sprintf(buf, end, "%ud.%ud.%ud.%ud", in nxt_sockaddr_ntop()
455 return p - buf; in nxt_sockaddr_ntop()
460 p = buf; in nxt_sockaddr_ntop()
473 return p - buf; in nxt_sockaddr_ntop()
490 p = nxt_sprintf(buf, end, "unix:\\0%*s", length, p + 1); in nxt_sockaddr_ntop()
493 p = nxt_sprintf(buf, end, "unix:%s", p); in nxt_sockaddr_ntop()
498 p = nxt_sprintf(buf, end, "unix:%s", sa->u.sockaddr_un.sun_path); in nxt_sockaddr_ntop()
502 return p - buf; in nxt_sockaddr_ntop()
515 nxt_inet6_ntop(u_char *addr, u_char *buf, u_char *end) in nxt_inet6_ntop() argument
524 if (buf + max_inet6_length > end) { in nxt_inet6_ntop()
525 return buf; in nxt_inet6_ntop()
559 p = buf; in nxt_inet6_ntop()
1185 nxt_inet_addr(u_char *buf, size_t length) in nxt_inet_addr() argument
1191 if (nxt_slow_path(*(buf + length - 1) == '.')) { in nxt_inet_addr()
1199 end = buf + length; in nxt_inet_addr()
1201 while (buf < end) { in nxt_inet_addr()
1203 c = *buf++; in nxt_inet_addr()
1235 nxt_inet6_addr(struct in6_addr *in6_addr, u_char *buf, size_t length) in nxt_inet6_addr() argument
1244 end = buf + length; in nxt_inet6_addr()
1246 if (buf[0] == ':') { in nxt_inet6_addr()
1247 buf++; in nxt_inet6_addr()
1257 while (buf < end) { in nxt_inet6_addr()
1258 c = *buf++; in nxt_inet6_addr()
1262 ipv4 = buf; in nxt_inet6_addr()
1276 ipv4 = buf; in nxt_inet6_addr()