projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1a89a1
)
SUNRPC: Don't display zero scope IDs
author
Chuck Lever
<chuck.lever@oracle.com>
Tue, 12 Jan 2010 22:41:20 +0000
(17:41 -0500)
committer
Trond Myklebust
<Trond.Myklebust@netapp.com>
Wed, 10 Feb 2010 13:30:53 +0000
(08:30 -0500)
A zero scope ID means that it wasn't set, so we don't need to append
it to presentation format addresses.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Acked-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/addr.c
patch
|
blob
|
blame
|
history
diff --git
a/net/sunrpc/addr.c
b/net/sunrpc/addr.c
index 0756c5da12f42dd5209d310679ee7579a8993542..f845d9d72f7307e3910fe39d0b32fbb95491114f 100644
(file)
--- a/
net/sunrpc/addr.c
+++ b/
net/sunrpc/addr.c
@@
-73,6
+73,8
@@
static size_t rpc_ntop6(const struct sockaddr *sap,
if (!(ipv6_addr_type(&sin6->sin6_addr) & IPV6_ADDR_LINKLOCAL))
return len;
+ if (sin6->sin6_scope_id == 0)
+ return len;
rc = snprintf(scopebuf, sizeof(scopebuf), "%c%u",
IPV6_SCOPE_DELIMITER, sin6->sin6_scope_id);