opnsense-src/usr.sbin/rpcbind
David Bright d18c9a9197 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)
Reviewers:	dab
Differential Revision:	https://reviews.freebsd.org/D31491
Sponsored by:	Dell EMC
MFC to:	stable/12, stable/13
MFC after:	1 week
2021-10-04 10:45:26 -07:00
..
tests RPCBIND: skip ipv6 link local when request is not from link local address 2021-10-04 10:45:26 -07:00
check_bound.c Remove unused includes. 2018-01-01 09:41:18 +00:00
Makefile Add HAS_TESTS to all Makefiles that are currently using the 2017-08-02 08:50:42 +00:00
Makefile.depend Update Makefile.depend files 2019-12-11 17:37:53 +00:00
Makefile.depend.options Add Makefile.depend.options 2019-12-11 17:37:37 +00:00
pmap_svc.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
rpcb_stat.c Remove unused includes. 2018-01-01 09:41:18 +00:00
rpcb_svc.c Partially back out changes in r327464. stdlib.h is used when 2018-03-05 03:34:01 +00:00
rpcb_svc_4.c Remove unused includes. 2018-01-01 09:41:18 +00:00
rpcb_svc_com.c - Remove extra NULL check before free(). 2018-03-05 03:38:31 +00:00
rpcbind.8 rpcbind(8): post-humously document -w (warmstart) support added in r74462 2017-04-19 20:23:27 +00:00
rpcbind.c Plug a possible memory leak. 2018-03-19 05:49:26 +00:00
rpcbind.h rpcbind: Fix race in signal termination 2018-01-02 17:25:13 +00:00
security.c Remove unused includes. 2018-01-01 09:41:18 +00:00
util.c RPCBIND: skip ipv6 link local when request is not from link local address 2021-10-04 10:45:26 -07:00
warmstart.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00