Lines Matching refs:addr
162 coap_print_addr(const struct coap_address_t *addr, unsigned char *buf, size_t len) { in coap_print_addr() argument
168 switch (addr->addr.sa.sa_family) { in coap_print_addr()
170 addrptr = &addr->addr.sin.sin_addr; in coap_print_addr()
171 port = ntohs(addr->addr.sin.sin_port); in coap_print_addr()
179 addrptr = &addr->addr.sin6.sin6_addr; in coap_print_addr()
180 port = ntohs(addr->addr.sin6.sin6_port); in coap_print_addr()
188 if (inet_ntop(addr->addr.sa.sa_family, addrptr, (char *)p, len) == 0) { in coap_print_addr()
195 if (addr->addr.sa.sa_family == AF_INET6) { in coap_print_addr()
221 *p++ = hex[(addr->addr.u8[i] & 0xf0) >> 4]; in coap_print_addr()
222 *p++ = hex[(addr->addr.u8[i] & 0x0f)]; in coap_print_addr()
223 *p++ = hex[(addr->addr.u8[i+1] & 0xf0) >> 4]; in coap_print_addr()
224 *p++ = hex[(addr->addr.u8[i+1] & 0x0f)]; in coap_print_addr()
237 p += snprintf((char *)p, buf + len - p + 1, ":%d", uip_htons(addr->port)); in coap_print_addr()