Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 267165
b: refs/heads/master
c: 038c015
h: refs/heads/master
i:
  267163: 55d84a9
v: v3
  • Loading branch information
Mi Jinlong authored and J. Bruce Fields committed Sep 14, 2011
1 parent a71b692 commit 755e496
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 849a1cf13d4394d398d91752166e92e9ecd64f8d
refs/heads/master: 038c01598e728cda5b2996c4bf883e8485b2fe50
8 changes: 7 additions & 1 deletion trunk/include/linux/sunrpc/clnt.h
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,13 @@ static inline bool __rpc_cmp_addr6(const struct sockaddr *sap1,
{
const struct sockaddr_in6 *sin1 = (const struct sockaddr_in6 *)sap1;
const struct sockaddr_in6 *sin2 = (const struct sockaddr_in6 *)sap2;
return ipv6_addr_equal(&sin1->sin6_addr, &sin2->sin6_addr);

if (!ipv6_addr_equal(&sin1->sin6_addr, &sin2->sin6_addr))
return false;
else if (ipv6_addr_type(&sin1->sin6_addr) & IPV6_ADDR_LINKLOCAL)
return sin1->sin6_scope_id == sin2->sin6_scope_id;

return true;
}

static inline bool __rpc_copy_addr6(struct sockaddr *dst,
Expand Down

0 comments on commit 755e496

Please sign in to comment.