public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
* [PATCH 0/4] Use inany addresses through port forwarding configuration
@ 2024-09-20  4:12 David Gibson
  2024-09-20  4:12 ` [PATCH 1/4] udp: Don't attempt to get dual-stack sockets in nonsensical cases David Gibson
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: David Gibson @ 2024-09-20  4:12 UTC (permalink / raw)
  To: Stefano Brivio, passt-dev; +Cc: David Gibson

We use inany addresses, which can represent either an IPv4 or IPv6
address heavily through the flow table.  However, for the
configuration of port forwarding: both the command line parsing and
initialization of listening sockets, we use address family+(void *)
pairs instead.

Using inany through these paths makes them slightly neater now, but
more importantly will make it easier to add more robust tracking of
forwarding configuration.

David Gibson (4):
  udp: Don't attempt to get dual-stack sockets in nonsensical cases
  util, pif: Replace sock_l4() with pif_sock_l4()
  tcp, udp: Make {tcp,udp}_sock_init() take an inany address
  inany: Add inany_pton() helper

 conf.c  | 23 ++++++++---------------
 inany.c | 20 ++++++++++++++++++++
 inany.h |  1 +
 pif.c   | 42 ++++++++++++++++++++++++++++++++++++++++++
 pif.h   |  3 +++
 tcp.c   | 45 +++++++++++++++++++++++----------------------
 tcp.h   |  2 +-
 udp.c   | 50 ++++++++++++++++++++++----------------------------
 udp.h   |  4 ++--
 util.c  | 52 ----------------------------------------------------
 util.h  |  3 ---
 11 files changed, 122 insertions(+), 123 deletions(-)

-- 
2.46.1


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

end of thread, other threads:[~2024-09-25 17:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-20  4:12 [PATCH 0/4] Use inany addresses through port forwarding configuration David Gibson
2024-09-20  4:12 ` [PATCH 1/4] udp: Don't attempt to get dual-stack sockets in nonsensical cases David Gibson
2024-09-20  4:12 ` [PATCH 2/4] util, pif: Replace sock_l4() with pif_sock_l4() David Gibson
2024-09-20  4:12 ` [PATCH 3/4] tcp, udp: Make {tcp,udp}_sock_init() take an inany address David Gibson
2024-09-20  4:12 ` [PATCH 4/4] inany: Add inany_pton() helper David Gibson
2024-09-25 17:39 ` [PATCH 0/4] Use inany addresses through port forwarding configuration 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).