Lines Matching refs:p

236     u_char    *p, *start, *end, *octet;  in nxt_sockaddr_text()  local
253 p = nxt_sprintf(start, end, "%ud.%ud.%ud.%ud", in nxt_sockaddr_text()
256 sa->address_length = p - start; in nxt_sockaddr_text()
268 p = start; in nxt_sockaddr_text()
269 *p++ = '['; in nxt_sockaddr_text()
271 p = nxt_inet6_ntop(sa->u.sockaddr_in6.sin6_addr.s6_addr, p, end); in nxt_sockaddr_text()
273 sa->address_length = p - (start + 1); in nxt_sockaddr_text()
276 *p++ = ']'; in nxt_sockaddr_text()
289 p = (u_char *) sa->u.sockaddr_un.sun_path; in nxt_sockaddr_text()
293 if (p[0] == '\0') { in nxt_sockaddr_text()
299 p = nxt_sprintf(start, end, "unix:@%*s", length - 1, p + 1); in nxt_sockaddr_text()
302 p = nxt_sprintf(start, end, "unix:%s", p); in nxt_sockaddr_text()
307 p = nxt_sprintf(start, end, "unix:%s", p); in nxt_sockaddr_text()
311 sa->address_length = p - start; in nxt_sockaddr_text()
313 sa->length = p - start; in nxt_sockaddr_text()
323 p = nxt_sprintf(p, end, ":%d", ntohs(port)); in nxt_sockaddr_text()
325 sa->length = p - start; in nxt_sockaddr_text()
439 u_char *p; in nxt_sockaddr_ntop() local
444 p = (u_char *) &sa->u.sockaddr_in.sin_addr; in nxt_sockaddr_ntop()
447 p = nxt_sprintf(buf, end, "%ud.%ud.%ud.%ud:%d", in nxt_sockaddr_ntop()
448 p[0], p[1], p[2], p[3], in nxt_sockaddr_ntop()
451 p = nxt_sprintf(buf, end, "%ud.%ud.%ud.%ud", in nxt_sockaddr_ntop()
452 p[0], p[1], p[2], p[3]); in nxt_sockaddr_ntop()
455 return p - buf; in nxt_sockaddr_ntop()
460 p = buf; in nxt_sockaddr_ntop()
463 *p++ = '['; in nxt_sockaddr_ntop()
466 p = nxt_inet6_ntop(sa->u.sockaddr_in6.sin6_addr.s6_addr, p, end); in nxt_sockaddr_ntop()
469 p = nxt_sprintf(p, end, "]:%d", in nxt_sockaddr_ntop()
473 return p - buf; in nxt_sockaddr_ntop()
482 p = (u_char *) sa->u.sockaddr_un.sun_path; in nxt_sockaddr_ntop()
484 if (p[0] == '\0') { 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()
517 u_char *p; in nxt_inet6_ntop() local
559 p = buf; in nxt_inet6_ntop()
573 *p++ = ':'; in nxt_inet6_ntop()
581 *p++ = ':'; in nxt_inet6_ntop()
585 p = nxt_sprintf(p, end, "%uxd", (addr[i] << 8) + addr[i + 1]); in nxt_inet6_ntop()
588 *p++ = ':'; in nxt_inet6_ntop()
593 p = nxt_sprintf(p, end, "%ud.%ud.%ud.%ud", in nxt_inet6_ntop()
597 return p; in nxt_inet6_ntop()
726 u_char *p, *start, *end; in nxt_sockaddr_inet6_parse() local
740 p = end + 1; in nxt_sockaddr_inet6_parse()
746 p = NULL; in nxt_sockaddr_inet6_parse()
751 if (p != NULL) { in nxt_sockaddr_inet6_parse()
752 length = (start + length) - p; in nxt_sockaddr_inet6_parse()
754 if (length < 2 || *p != ':') { in nxt_sockaddr_inet6_parse()
760 port = nxt_int_parse(p + 1, length - 1); in nxt_sockaddr_inet6_parse()
799 u_char *p; in nxt_sockaddr_inet_parse() local
805 p = nxt_memchr(addr->start, ':', addr->length); in nxt_sockaddr_inet_parse()
807 if (p == NULL) { in nxt_sockaddr_inet_parse()
811 length = p - addr->start; in nxt_sockaddr_inet_parse()
826 if (p != NULL) { in nxt_sockaddr_inet_parse()
827 p++; in nxt_sockaddr_inet_parse()
828 length = (addr->start + addr->length) - p; in nxt_sockaddr_inet_parse()
830 port = nxt_int_parse(p, length); in nxt_sockaddr_inet_parse()
855 u_char *p; in nxt_job_sockaddr_parse() local
863 p = jbs->addr.start; in nxt_job_sockaddr_parse()
865 if (length > 6 && nxt_memcmp(p, "unix:", 5) == 0) { in nxt_job_sockaddr_parse()
868 } else if (length != 0 && *p == '[') { in nxt_job_sockaddr_parse()
979 u_char *p, *addr, *addr_end; in nxt_job_sockaddr_inet6_parse() local
1019 p = addr_end + 1; in nxt_job_sockaddr_inet6_parse()
1020 length = (addr + length) - p; in nxt_job_sockaddr_inet6_parse()
1028 if (*p == ':') { in nxt_job_sockaddr_inet6_parse()
1029 port = nxt_int_parse(p + 1, length - 1); in nxt_job_sockaddr_inet6_parse()
1072 u_char *p, *host; in nxt_job_sockaddr_inet_parse() local
1084 p = nxt_memchr(host, ':', length); in nxt_job_sockaddr_inet_parse()
1086 if (p == NULL) { in nxt_job_sockaddr_inet_parse()
1122 p++; in nxt_job_sockaddr_inet_parse()
1123 length = (host + length) - p; in nxt_job_sockaddr_inet_parse()
1124 port = nxt_int_parse(p, length); in nxt_job_sockaddr_inet_parse()
1132 length = (p - 1) - host; in nxt_job_sockaddr_inet_parse()