Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os 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>

authored by

Jeff Layton and committed by
J. Bruce Fields
155a345a 3abdb607

+1
+1
include/linux/sunrpc/clnt.h
··· 242 242 243 243 dsin6->sin6_family = ssin6->sin6_family; 244 244 dsin6->sin6_addr = ssin6->sin6_addr; 245 + dsin6->sin6_scope_id = ssin6->sin6_scope_id; 245 246 return true; 246 247 } 247 248 #else /* !(IS_ENABLED(CONFIG_IPV6) */