freebsd-nq/usr.sbin/rpcbind
David Bright 7ee00acd40 RPCBIND: skip ipv6 link local when request is not from link local address
RPCINFO on macOS behaves different compared to other linux clients and
doesn't provide request address in rpcb structure of the
RPCBPROC_GETADDRLIST call which doesn't seem to be forbidden.

In this case RPCBIND uses RPC call's source address and picks a
closest corresponding local address. If there are no addresses in the
same subnet as the source address, return of RPCBIND may vary
depending on the order of addresses returned in getifaddrs. If a link
local precedes global address it may be returned even if the request
comes from neither a link local nor from link local in a different
scope, which will prevent services like nfs from working in tpc6
scenario on macOS clients. Issue can be seen only on FreeBSD rpcbind
port due to changes in workflow of addrmerge call.

Submitted by:	Dmitry Ovsyannikov (Dmitry.Ovsyannikov@dell.com)
Sponsored by:	Dell EMC

(cherry picked from commit d18c9a9197)
2021-10-11 09:19:15 -07:00
..
tests RPCBIND: skip ipv6 link local when request is not from link local address 2021-10-11 09:19:15 -07:00
check_bound.c
Makefile
Makefile.depend Update Makefile.depend files 2019-12-11 17:37:53 +00:00
Makefile.depend.options
pmap_svc.c
rpcb_stat.c
rpcb_svc_4.c
rpcb_svc_com.c
rpcb_svc.c
rpcbind.8
rpcbind.c
rpcbind.h
security.c
util.c RPCBIND: skip ipv6 link local when request is not from link local address 2021-10-11 09:19:15 -07:00
warmstart.c