diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2011-11-02 23:56:40 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2011-11-02 23:56:40 -0400 |
commit | 31cbecb4ab538f433145bc5a46f3bea9b9627031 (patch) | |
tree | d6206d42dea7298f7ef05fd1f7bf474245f0d43a /include/linux/sunrpc/clnt.h | |
parent | 2b72c9ccd22c4a3299e5a358dcd639fb253730f4 (diff) | |
parent | 278c023a99b0d6b471d0f4a79835c703482e29ac (diff) |
Merge branch 'osd-devel' into nfs-for-next
Diffstat (limited to 'include/linux/sunrpc/clnt.h')
-rw-r--r-- | include/linux/sunrpc/clnt.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/linux/sunrpc/clnt.h b/include/linux/sunrpc/clnt.h index ad09bed239fc..3d8f9c44e27d 100644 --- a/include/linux/sunrpc/clnt.h +++ b/include/linux/sunrpc/clnt.h | |||
@@ -221,7 +221,13 @@ static inline bool __rpc_cmp_addr6(const struct sockaddr *sap1, | |||
221 | { | 221 | { |
222 | const struct sockaddr_in6 *sin1 = (const struct sockaddr_in6 *)sap1; | 222 | const struct sockaddr_in6 *sin1 = (const struct sockaddr_in6 *)sap1; |
223 | const struct sockaddr_in6 *sin2 = (const struct sockaddr_in6 *)sap2; | 223 | const struct sockaddr_in6 *sin2 = (const struct sockaddr_in6 *)sap2; |
224 | return ipv6_addr_equal(&sin1->sin6_addr, &sin2->sin6_addr); | 224 | |
225 | if (!ipv6_addr_equal(&sin1->sin6_addr, &sin2->sin6_addr)) | ||
226 | return false; | ||
227 | else if (ipv6_addr_type(&sin1->sin6_addr) & IPV6_ADDR_LINKLOCAL) | ||
228 | return sin1->sin6_scope_id == sin2->sin6_scope_id; | ||
229 | |||
230 | return true; | ||
225 | } | 231 | } |
226 | 232 | ||
227 | static inline bool __rpc_copy_addr6(struct sockaddr *dst, | 233 | static inline bool __rpc_copy_addr6(struct sockaddr *dst, |