Skip to content

sm-notify: fix IPv4/IPv6 host notification

Scott Mayhew linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2sm-notify: fix multihomed address rotation and first-attempt address choiceutils/statd/sm-notify.c+4 -40 replies
2/2sm-notify: use a separate socket per address familyutils/statd/sm-notify.c+163 -900 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [nfs-utils PATCH 0/2] sm-notify: fix IPv4/IPv6 host notification

This series fixes sm-notify failing to notify peers in mixed IPv4/IPv6 setups.

Patch 1 fixes the address-list rotation in notify_host(), which orphaned addresses and sent the first packet to the wrong address, so a host with multiple addresses could never be reached.

Patch 2 reworks sm-notify to use a separate socket per address family instead of a single IPv6 socket relying on IPv4-mapped addresses. This removes the dependence on IPv4-mapped IPv6 addresses and lets a specific source address (-v / outgoing-addr) notify peers of both families.

Scott Mayhew (2):
sm-notify: fix multihomed address rotation and first-attempt address
choice
sm-notify: use a separate socket per address family

 utils/statd/sm-notify.c | 255 ++++++++++++++++++++++++++--------------
 1 file changed, 164 insertions(+), 91 deletions(-)
Signature · 1 line
2.55.0