Peter Schwenke has uploaded this change for review.
Fix IP address comparison for client manager
svc_getrpccaller() will retrieve IPv6 formatted IPv4 addresses such as
::ffff:192.168.10.94 and keep them in that format. This is passed
through to init_op_context() by nfs_rpc_process_request() in
nfs_worker_thread.c. arg_ipaddr() used in client_mgr.c could return
the IPv4 version. Therefore, comparisons will fail.
Here we normalise the addresses for the comparison.
Change-Id: I083c01a4ebdf2d06beee35eda86c1f90b233bec5
Signed-off-by: Peter Schwenke <pschwenke@ddn.com>
---
M src/support/ip_utils.c
1 file changed, 7 insertions(+), 0 deletions(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/19/1225619/1
To view, visit change 1225619. To unsubscribe, or for help writing mail filters, visit settings.