Skip to content

Commit

Permalink
sunrpc: copy scope ID in __rpc_copy_addr6
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jeff Layton authored and J. Bruce Fields committed Feb 5, 2013
1 parent 3abdb60 commit 155a345
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/linux/sunrpc/clnt.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) */
Expand Down

0 comments on commit 155a345

Please sign in to comment.