put received packet length at the start of the buffer instead of
the end so that it is easier to look at.