/* Processes a single SMP packet and sends the corresponding response(s).  */
static int smp_process_packet(struct smp_transport *smpt, struct net_buf *nb)
/* Processes a single SMP packet and sends the corresponding response(s).  */
static int smp_process_packet(struct smp_transport *smpt, struct net_buf *nb)
{
	struct cbor_nb_reader reader;
	struct cbor_nb_writer writer;
	struct smp_streamer streamer;
	int rc;
	streamer = (struct smp_streamer) {
		.reader = &reader,
		.writer = &writer,
		.smpt = smpt,
	};
	rc = smp_process_request_packet(&streamer, nb);
	return rc;
}