[Cluster-devel] [Patch net-next v3 7/9] fs: use generic union inet_addr and helper functions

2013-08-19 Thread Cong Wang
From: Cong Wang amw...@redhat.com nfs and cifs define some helper functions for sockaddr, they can use the generic functions for union inet_addr/struct sockaddr too. Since some dlm code needs to compare -sin_port, introduce a generic function inet_addr_equal_strict() for it. Cc: Steve French

Re: [Cluster-devel] [Patch net-next v3 7/9] fs: use generic union inet_addr and helper functions

2013-08-19 Thread Christoph Hellwig
@@ -1900,17 +1901,9 @@ srcip_matches(struct sockaddr *srcaddr, struct sockaddr *rhs) { I think your new sockaddr_equal should be equivalent to to this srcip_matches, that is it should warn about and return false for unknown address families.