[PATCH v2 01/15] net: Introduce NetClientInfo.check_peer_type()