Lines Matching refs:hdr

143   pdu->hdr->type = msgtype;  in coap_new_request()
144 pdu->hdr->id = coap_new_message_id(ctx); in coap_new_request()
145 pdu->hdr->code = m; in coap_new_request()
147 pdu->hdr->token_length = the_token.length; in coap_new_request()
242 if (pdu->hdr->type == COAP_MESSAGE_CON) in clear_obs()
250 } else if (pdu->hdr->type != COAP_MESSAGE_CON) in clear_obs()
305 ((Pdu)->hdr->code == COAP_RESPONSE_CODE(201) || \
306 (Pdu)->hdr->code == COAP_RESPONSE_CODE(204)))
310 return received->hdr->token_length == the_token.length && in check_token()
311 memcmp(received->hdr->token, the_token.s, the_token.length) == 0; in check_token()
334 (received->hdr->code >> 5), received->hdr->code & 0x1F); in message_handler()
342 if (!sent && (received->hdr->type == COAP_MESSAGE_CON || in message_handler()
343 received->hdr->type == COAP_MESSAGE_NON)) in message_handler()
348 if (received->hdr->type == COAP_MESSAGE_RST) { in message_handler()
354 if (COAP_RESPONSE_CLASS(received->hdr->code) == 2) { in message_handler()
408 if (pdu->hdr->type == COAP_MESSAGE_CON) in message_handler()
418 if (pdu->hdr->type != COAP_MESSAGE_CON) in message_handler()
481 if (pdu->hdr->type == COAP_MESSAGE_CON) in message_handler()
491 if (pdu->hdr->type != COAP_MESSAGE_CON) in message_handler()
506 if (COAP_RESPONSE_CLASS(received->hdr->code) >= 4) { in message_handler()
508 (received->hdr->code >> 5), received->hdr->code & 0x1F); in message_handler()
1198 if (pdu->hdr->type == COAP_MESSAGE_CON) in main()
1203 if (pdu->hdr->type != COAP_MESSAGE_CON || tid == COAP_INVALID_TID) in main()