Lines Matching refs:code
567 COAP_RESPONSE_CLASS(pdu->hdr->code) > 2) { in coap_send_impl()
628 unsigned char code, in coap_send_error() argument
636 response = coap_new_error_response(request, code, opts); in coap_send_error()
805 if (node->pdu->hdr->code >= 64) { in coap_retransmit()
1032 coap_new_error_response(coap_pdu_t *request, unsigned char code, in coap_new_error_response() argument
1042 char *phrase = coap_response_phrase(code); in coap_new_error_response()
1097 response = coap_pdu_init(type, code, request->hdr->id, size); in coap_new_error_response()
1180 resp->hdr->code = COAP_RESPONSE_CODE(400); in coap_wellknown_response()
1190 resp->hdr->code = COAP_RESPONSE_CODE(400); in coap_wellknown_response()
1265 resp->hdr->code = COAP_RESPONSE_CODE(503); in coap_wellknown_response()
1347 return (COAP_RESPONSE_CLASS(response->hdr->code) > 0) in no_response()
1348 && (((1 << (COAP_RESPONSE_CLASS(response->hdr->code) - 1)) & val) > 0); in no_response()
1352 (((Pdu)->hdr->code == COAP_REQUEST_GET) && is_wkc(Key))
1373 switch(node->pdu->hdr->code) { in handle_request()
1409 if ((size_t)node->pdu->hdr->code - 1 < in handle_request()
1411 h = resource->handler[node->pdu->hdr->code - 1]; in handle_request()
1455 if (observe && ((COAP_RESPONSE_CLASS(response->hdr->code) > 2) in handle_request()
1466 && (response->hdr->code == 0)) { in handle_request()
1473 (response->hdr->code >= 64 in handle_request()
1559 if (rcvd->pdu->hdr->code == 0)
1565 if (sent && COAP_RESPONSE_CLASS(sent->pdu->hdr->code) == 2) {
1627 COAP_RESPONSE_CLASS(rcvd->pdu->hdr->code),
1628 rcvd->pdu->hdr->code & 0x1f);