packetlength check