public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
* [PATCH 0/3] Properly preseve local addresses for UDP flows
@ 2025-04-10  7:16 David Gibson
  2025-04-10  7:16 ` [PATCH 1/3] udp: Use PKTINFO cmsgs to get destination address for received datagrams David Gibson
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: David Gibson @ 2025-04-10  7:16 UTC (permalink / raw)
  To: Stefano Brivio, passt-dev; +Cc: David Gibson

Add the pieces we need so that we'll reliably send replies from the
same local address that the originating datagram was delivered to.
Fixes bug 99, and will (I think) be necessary for a bunch more of the
flexible forwarding stuff we have in mind.

David Gibson (3):
  udp: Use PKTINFO cmsgs to get destination address for received
    datagrams
  inany: Improve ASSERT message for bad socket family
  udp, udp_flow: Track our specific address on socket interfaces

 flow.c       | 14 +++++++++++---
 flow.h       |  3 ++-
 flow_table.h |  1 +
 inany.h      |  3 ++-
 tcp.c        |  2 +-
 udp.c        | 41 +++++++++++++++++++++++++++++++++++++----
 udp_flow.c   | 36 ++++++++++++++++++++++++++++++++----
 udp_flow.h   |  3 ++-
 util.c       |  8 ++++++--
 util.h       | 10 ++++++++++
 10 files changed, 104 insertions(+), 17 deletions(-)

-- 
2.49.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-04-11  5:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-10  7:16 [PATCH 0/3] Properly preseve local addresses for UDP flows David Gibson
2025-04-10  7:16 ` [PATCH 1/3] udp: Use PKTINFO cmsgs to get destination address for received datagrams David Gibson
2025-04-10  7:16 ` [PATCH 2/3] inany: Improve ASSERT message for bad socket family David Gibson
2025-04-10  7:16 ` [PATCH 3/3] udp, udp_flow: Track our specific address on socket interfaces David Gibson
2025-04-11  5:03 ` [PATCH 0/3] Properly preseve local addresses for UDP flows Stefano Brivio

Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).