gets first packet length