Lines Matching refs:rcvd
3338 coap_pdu_t *sent, coap_pdu_t *rcvd) { in handle_response() argument
3344 if (rcvd->type != COAP_MESSAGE_ACK) in handle_response()
3345 coap_cancel_all_messages(context, session, &rcvd->actual_token); in handle_response()
3349 if (rcvd->type == COAP_MESSAGE_CON) { in handle_response()
3350 if (rcvd->mid == session->last_con_mid) { in handle_response()
3354 session->last_con_mid = rcvd->mid; in handle_response()
3355 } else if (rcvd->type == COAP_MESSAGE_ACK) { in handle_response()
3356 if (rcvd->mid == session->last_ack_mid) { in handle_response()
3360 session->last_ack_mid = rcvd->mid; in handle_response()
3365 session->remote_test_mid == rcvd->mid) { in handle_response()
3367 if (rcvd->actual_token.length != session->max_token_size || in handle_response()
3368 rcvd->code == COAP_RESPONSE_CODE(400) || in handle_response()
3369 rcvd->code == COAP_RESPONSE_CODE(503)) { in handle_response()
3382 session->remote_test_mid == rcvd->mid) { in handle_response()
3383 if (rcvd->code == COAP_RESPONSE_CODE(402)) { in handle_response()
3389 if (coap_get_block_b(session, rcvd, COAP_OPTION_Q_BLOCK2, &qblock)) { in handle_response()
3404 if (coap_handle_response_send_block(session, sent, rcvd)) { in handle_response()
3406 coap_send_ack(session, rcvd); in handle_response()
3411 if (coap_handle_response_get_block(context, session, sent, rcvd, in handle_response()
3422 if (context->response_handler(session, sent, rcvd, in handle_response()
3423 rcvd->mid) == COAP_RESPONSE_FAIL) in handle_response()
3424 coap_send_rst(session, rcvd); in handle_response()
3426 coap_send_ack(session, rcvd); in handle_response()
3428 coap_send_ack(session, rcvd); in handle_response()