Edit some packet_type scanning logic.