Re: [PATCH 4/9] NFS: Use RPC functions for matching sockaddrs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>  static int nfs_sockaddr_cmp_ip6(const struct sockaddr *sa1,
>  				const struct sockaddr *sa2)
>  {
>  	const struct sockaddr_in6 *sin1 = (const struct sockaddr_in6 *)sa1;
>  	const struct sockaddr_in6 *sin2 = (const struct sockaddr_in6 *)sa2;
>  
> -	return nfs_sockaddr_match_ipaddr6(sa1, sa2) &&
> -		(sin1->sin6_port == sin2->sin6_port);
> +	return rpc_cmp_addr6(sa1, sa2) && (sin1->sin6_port == sin2->sin6_port);
>  }
>  
>  static int nfs_sockaddr_cmp_ip4(const struct sockaddr *sa1,
> @@ -350,31 +301,8 @@ static int nfs_sockaddr_cmp_ip4(const struct sockaddr *sa1,
>  	const struct sockaddr_in *sin1 = (const struct sockaddr_in *)sa1;
>  	const struct sockaddr_in *sin2 = (const struct sockaddr_in *)sa2;
>  
> -	return nfs_sockaddr_match_ipaddr4(sa1, sa2) &&
> -		(sin1->sin_port == sin2->sin_port);
> -}

I'd say kill nfs_sockaddr_cmp as well and use rpc_cmp_addr in
nfs_match_client.

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux