Lines Matching refs:hdr
775 data[user_data->index].expected_mid = ntohs(pdu->hdr->id); in create_pdu()
810 if (pdu->hdr->type == COAP_MESSAGE_CON) in send_packets()
821 if (pdu->hdr->type != COAP_MESSAGE_CON || tid == COAP_INVALID_TID) in send_packets()
860 if (pdu->hdr->type == COAP_MESSAGE_CON) in try_send()
871 if (pdu->hdr->type != COAP_MESSAGE_CON || tid == COAP_INVALID_TID) in try_send()
1094 return received->hdr->token_length == the_token.length && in check_token()
1095 memcmp(received->hdr->token, the_token.s, in check_token()
1106 (received->hdr->type == COAP_MESSAGE_CON || in is_our_own()
1107 received->hdr->type == COAP_MESSAGE_NON)) in is_our_own()
1165 pdu->hdr->type = msgtype; in coap_new_request()
1166 pdu->hdr->id = coap_new_message_id(ctx); in coap_new_request()
1167 pdu->hdr->code = m; in coap_new_request()
1170 pdu->hdr->token_length = the_token.length; in coap_new_request()
1239 if (received->hdr->type == COAP_MESSAGE_CON) in read_blocks()
1255 if (received->hdr->type != COAP_MESSAGE_CON) { in read_blocks()
1350 (received->hdr->code >> 5), received->hdr->code & 0x1F); in coap_message_handler()
1357 switch (received->hdr->type) { in coap_message_handler()
1368 if (COAP_RESPONSE_CLASS(received->hdr->code) == 2) { in coap_message_handler()
1433 if (pdu->hdr->type == COAP_MESSAGE_CON) in coap_message_handler()
1446 if (pdu->hdr->type != COAP_MESSAGE_CON) in coap_message_handler()
1458 if (COAP_RESPONSE_CLASS(received->hdr->code) >= 4) { in coap_message_handler()
1460 (received->hdr->code >> 5), in coap_message_handler()
1461 received->hdr->code & 0x1F); in coap_message_handler()