Adds checking on packet_type in recv_tcp_packet.

If the packet_type <= 1, it sets a ERR_CORRUPTED.