Lines Matching refs:p
122 char *p = buf; in dsrv_print_addr() local
136 *p++ = '['; in dsrv_print_addr()
147 if (inet_ntop(addr->addr.sa.sa_family, addrptr, p, len) == 0) { in dsrv_print_addr()
152 p += dtls_strnlen(p, len); in dsrv_print_addr()
155 if (p < buf + len) { in dsrv_print_addr()
156 *p++ = ']'; in dsrv_print_addr()
161 p += snprintf(p, buf + len - p + 1, ":%d", port); in dsrv_print_addr()
163 return p - buf; in dsrv_print_addr()
166 char *p = buf; in dsrv_print_addr()
174 *p++ = '['; in dsrv_print_addr()
178 *p++ = ':'; in dsrv_print_addr()
180 *p++ = hex[(addr->addr.u8[i] & 0xf0) >> 4]; in dsrv_print_addr()
181 *p++ = hex[(addr->addr.u8[i] & 0x0f)]; in dsrv_print_addr()
182 *p++ = hex[(addr->addr.u8[i+1] & 0xf0) >> 4]; in dsrv_print_addr()
183 *p++ = hex[(addr->addr.u8[i+1] & 0x0f)]; in dsrv_print_addr()
185 *p++ = ']'; in dsrv_print_addr()
192 if (buf + len - p < 6) in dsrv_print_addr()
195 p += sprintf(p, ":%d", uip_htons(addr->port)); in dsrv_print_addr()
197 return p - buf; in dsrv_print_addr()