Lines Matching refs:id

497 		    coap_tid_t *id) {  in coap_transaction_id()  argument
528 coap_hash((const unsigned char *)&pdu->hdr->id, sizeof(unsigned short), h); in coap_transaction_id()
530 *id = (((h[0] << 8) | h[1]) ^ ((h[2] << 8) | h[3])) & INT_MAX; in coap_transaction_id()
542 response = coap_pdu_init(COAP_MESSAGE_ACK, 0, request->hdr->id, in coap_send_ack()
559 coap_tid_t id = COAP_INVALID_TID; in coap_send_impl() local
562 return id; in coap_send_impl()
575 coap_transaction_id(dst, pdu, &id); in coap_send_impl()
580 return id; in coap_send_impl()
589 coap_tid_t id = COAP_INVALID_TID; in coap_send_impl() local
595 return id; in coap_send_impl()
606 coap_transaction_id(dst, pdu, &id); in coap_send_impl()
611 return id; in coap_send_impl()
655 response = coap_pdu_init(type, 0, request->hdr->id, sizeof(coap_pdu_t)); in coap_send_message_type()
716 node->id = coap_send_impl(context, local_interface, dst, pdu); in coap_send_confirmed()
717 if (COAP_INVALID_TID == node->id) { in coap_send_confirmed()
770 return node->id; in coap_send_confirmed()
789 node->retransmit_cnt, ntohs(node->pdu->hdr->id)); in coap_retransmit()
791 node->id = coap_send_impl(context, &node->local_if, in coap_retransmit()
793 return node->id; in coap_retransmit()
799 debug("** removed transaction %d\n", ntohs(node->id)); in coap_retransmit()
902 coap_transaction_id(&node->remote, node->pdu, &node->id); in coap_handle_message()
934 coap_remove_from_queue(coap_queue_t **queue, coap_tid_t id, coap_queue_t **node) { in coap_remove_from_queue() argument
942 if ( id == (*queue)->id ) { /* found transaction */ in coap_remove_from_queue()
950 debug("*** removed transaction %u\n", id); in coap_remove_from_queue()
959 } while ( q && id != q->id ); in coap_remove_from_queue()
969 debug("*** removed transaction %u\n", id); in coap_remove_from_queue()
997 debug("**** removed transaction %d\n", ntohs(q->pdu->hdr->id)); in coap_cancel_all_messages()
1013 debug("**** removed transaction %d\n", ntohs(q->pdu->hdr->id)); in coap_cancel_all_messages()
1024 coap_find_transaction(coap_queue_t *queue, coap_tid_t id) { in coap_find_transaction() argument
1025 while (queue && queue->id != id) in coap_find_transaction()
1097 response = coap_pdu_init(type, code, request->hdr->id, size); in coap_new_error_response()
1162 request->hdr->id, COAP_MAX_PDU_SIZE); in coap_wellknown_response()
1401 warn("cannot send response for transaction %u\n", node->id); in handle_request()
1419 0, node->pdu->hdr->id, COAP_MAX_PDU_SIZE); in handle_request()
1478 debug("cannot send response for message %d\n", node->pdu->hdr->id); in handle_request()
1497 debug("cannot send response for transaction %u\n", node->id); in handle_request()
1521 rcvd->pdu, rcvd->id); in handle_response()
1557 coap_remove_from_queue(&context->sendqueue, rcvd->id, &sent);
1578 coap_log(LOG_ALERT, "got RST for message %u\n", ntohs(rcvd->pdu->hdr->id));
1580 coap_log(LOG_ALERT, "got RST for message %u\n", uip_ntohs(rcvd->pdu->hdr->id));
1584 coap_remove_from_queue(&context->sendqueue, rcvd->id, &sent);