Using the pbuf_clen() function to calculate the number of pbufs for the first packet in the queue is not correct here, as pbuf_clen() will return the total number of pbufs in the loopback I/F queue.