SQUASH ME: reverted to original data type for packet length field