Peter Schwenke has uploaded this change for review. (
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1225619?usp=email )
Change subject: Fix IP address comparison for client manager
......................................................................
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(a)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
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1225619?usp=email
To unsubscribe, or for help writing mail filters, visit
https://review.gerrithub.io/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: I083c01a4ebdf2d06beee35eda86c1f90b233bec5
Gerrit-Change-Number: 1225619
Gerrit-PatchSet: 1
Gerrit-Owner: Peter Schwenke <pschwenke(a)ddn.com>