forked from Minki/linux
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 <jlayton@redhat.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
This commit is contained in:
parent
3abdb60712
commit
155a345a52
@ -242,6 +242,7 @@ static inline bool __rpc_copy_addr6(struct sockaddr *dst,
|
|||||||
|
|
||||||
dsin6->sin6_family = ssin6->sin6_family;
|
dsin6->sin6_family = ssin6->sin6_family;
|
||||||
dsin6->sin6_addr = ssin6->sin6_addr;
|
dsin6->sin6_addr = ssin6->sin6_addr;
|
||||||
|
dsin6->sin6_scope_id = ssin6->sin6_scope_id;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
#else /* !(IS_ENABLED(CONFIG_IPV6) */
|
#else /* !(IS_ENABLED(CONFIG_IPV6) */
|
||||||
|
Loading…
Reference in New Issue
Block a user