[M] Change in ...nfs-ganesha[next]: network: unify ipv4 and ipv6-mapped address handling
Attention is currently required from: Frank Filz. Hello Frank Filz, I'd like you to do a code review. Please visit https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1235929?usp=email to review the following change. Change subject: network: unify ipv4 and ipv6-mapped address handling ...................................................................... network: unify ipv4 and ipv6-mapped address handling Fix sockaddr comparison and hashing to treat native IPv4 addresses and their IPv6-mapped counterparts as identical logical endpoints. Previously, comparing native IPv4 and IPv6-mapped addresses could yield inconsistent ordering, breaking sorted structures like AVL trees. The comparison logic now normalizes both addresses to a consistent format before evaluation to ensure a strict weak ordering. Additionally, update the hashing function to return identical keys for IPv4 and equivalent mapped IPv6 addresses, preventing duplicate entries in hash-based data structures. Change-Id: I90966c115da059087da5cdeb4ed7b5c1be45dd54 Signed-off-by: Lior Suliman <liorsu@gmail.com> --- M src/include/ip_utils.h M src/support/ip_utils.c 2 files changed, 74 insertions(+), 34 deletions(-) git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/29/1235929/1 -- To view, visit https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1235929?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: I90966c115da059087da5cdeb4ed7b5c1be45dd54 Gerrit-Change-Number: 1235929 Gerrit-PatchSet: 1 Gerrit-Owner: Lior Suliman <liorsu@google.com> Gerrit-Reviewer: Frank Filz <ffilzlnx@mindspring.com> Gerrit-Attention: Frank Filz <ffilzlnx@mindspring.com>
participants (1)
-
Lior Suliman (GerritHub)