projects
/
platform
/
kernel
/
linux-arm64.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3abdb60
)
sunrpc: copy scope ID in __rpc_copy_addr6
author
Jeff Layton
<jlayton@redhat.com>
Mon, 4 Feb 2013 13:10:08 +0000
(08:10 -0500)
committer
J. Bruce Fields
<bfields@redhat.com>
Tue, 5 Feb 2013 14:41:13 +0000
(09:41 -0500)
When copying an address, we should also copy the scopeid in the event
that this is a link-local address and the scope matters.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
include/linux/sunrpc/clnt.h
patch
|
blob
|
history
diff --git
a/include/linux/sunrpc/clnt.h
b/include/linux/sunrpc/clnt.h
index
47354a2
..
6a7c261
100644
(file)
--- a/
include/linux/sunrpc/clnt.h
+++ b/
include/linux/sunrpc/clnt.h
@@
-242,6
+242,7
@@
static inline bool __rpc_copy_addr6(struct sockaddr *dst,
dsin6->sin6_family = ssin6->sin6_family;
dsin6->sin6_addr = ssin6->sin6_addr;
+ dsin6->sin6_scope_id = ssin6->sin6_scope_id;
return true;
}
#else /* !(IS_ENABLED(CONFIG_IPV6) */