Lines Matching refs:src
43 coap_address_t src; /**< the packet's source address */ member
391 memcpy(target, &packet->src, sizeof(coap_address_t)); in coap_packet_copy_source()
432 coap_address_init(&(*packet)->src); /* the remote peer */ in coap_network_read()
440 mhdr.msg_name = &(*packet)->src.addr.st; in coap_network_read()
441 mhdr.msg_namelen = sizeof((*packet)->src.addr.st); in coap_network_read()
485 (*packet)->src.size = mhdr.msg_namelen; in coap_network_read()
486 assert((*packet)->src.size == sizeof(struct sockaddr_in6)); in coap_network_read()
488 (*packet)->src.addr.sin6.sin6_family = SIN6(mhdr.msg_name)->sin6_family; in coap_network_read()
489 (*packet)->src.addr.sin6.sin6_addr = SIN6(mhdr.msg_name)->sin6_addr; in coap_network_read()
490 (*packet)->src.addr.sin6.sin6_port = SIN6(mhdr.msg_name)->sin6_port; in coap_network_read()
508 (*packet)->src.size = mhdr.msg_namelen; in coap_network_read()
509 memcpy(&(*packet)->src.addr.st, mhdr.msg_name, (*packet)->src.size); in coap_network_read()
527 uip_ipaddr_copy(&(*packet)->src.addr, &UIP_IP_BUF->srcipaddr); in coap_network_read()
528 (*packet)->src.port = UIP_UDP_BUF->srcport; in coap_network_read()
553 if (coap_print_addr(&(*packet)->src, addr_str, INET6_ADDRSTRLEN+8)) { in coap_network_read()