packet len check