Skip to content

Commit 155a345

Browse files
jtlaytonJ. Bruce Fields
authored andcommitted
sunrpc: copy scope ID in __rpc_copy_addr6
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 <[email protected]> Signed-off-by: J. Bruce Fields <[email protected]>
1 parent 3abdb60 commit 155a345

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/linux/sunrpc/clnt.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ static inline bool __rpc_copy_addr6(struct sockaddr *dst,
242242

243243
dsin6->sin6_family = ssin6->sin6_family;
244244
dsin6->sin6_addr = ssin6->sin6_addr;
245+
dsin6->sin6_scope_id = ssin6->sin6_scope_id;
245246
return true;
246247
}
247248
#else /* !(IS_ENABLED(CONFIG_IPV6) */

0 commit comments

Comments
 (0)