check packet type