* NID is on the local node, allow any flavor
*/
if ((strcmp(exp->exp_obd->obd_type->typ_name,
- LUSTRE_MGS_NAME) == 0) &&
- (exp->exp_flvr.sf_rpc == SPTLRPC_FLVR_NULL ||
- LNetIsPeerLocal(exp->exp_connection->c_peer.nid)))
+ LUSTRE_MGS_NAME) == 0) &&
+ (exp->exp_flvr.sf_rpc == SPTLRPC_FLVR_NULL ||
+ LNetIsPeerLocal(lnet_nid_to_nid4(&exp->exp_connection->c_peer.nid))))
exp->exp_flvr.sf_rpc = SPTLRPC_FLVR_ANY;
if (exp->exp_flvr.sf_rpc != SPTLRPC_FLVR_ANY &&