public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
* [PATCH 0/3] RFC: Reduce differences between inbound and outbound socket binding
@ 2025-10-17  0:34 David Gibson
  2025-10-17  0:34 ` [PATCH 1/3] tcp: Merge tcp_ns_sock_init[46]() into tcp_sock_init_one() David Gibson
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: David Gibson @ 2025-10-17  0:34 UTC (permalink / raw)
  To: passt-dev, Stefano Brivio; +Cc: David Gibson

The fact that outbound forwarding sockets are bound to the loopback
address, whereas inbound forwarding sockets are (by default) bound to
the unspecified address leads to some unexpected differences between
the paths setting up each of them.

Happily there's an approach to tackling bug 100 which also reduces
those differences, allowing more code to be shared between the two
paths.  Amongst other things, this will make the next steps of
flexible forwarding configuration easier.

Link: https://bugs.passt.top/show_bug.cgi?id=100

David Gibson (3):
  tcp: Merge tcp_ns_sock_init[46]() into tcp_sock_init_one()
  udp: Unify some more inbound/outbound parts of udp_sock_init()
  tcp, udp: Bind outbound listening sockets by interface instead of
    address

 conf.c |   4 +--
 pif.c  |   6 ----
 tcp.c  | 110 +++++++++++++++------------------------------------------
 tcp.h  |   5 +--
 udp.c  |  55 +++++++++++++----------------
 udp.h  |   5 +--
 6 files changed, 61 insertions(+), 124 deletions(-)

-- 
2.51.0


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

end of thread, other threads:[~2025-10-23  1:42 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-10-17  0:34 [PATCH 0/3] RFC: Reduce differences between inbound and outbound socket binding David Gibson
2025-10-17  0:34 ` [PATCH 1/3] tcp: Merge tcp_ns_sock_init[46]() into tcp_sock_init_one() David Gibson
2025-10-20  6:08   ` Stefano Brivio
2025-10-20  9:24     ` David Gibson
2025-10-20  6:09   ` Stefano Brivio
2025-10-20  9:25     ` David Gibson
2025-10-17  0:34 ` [PATCH 2/3] udp: Unify some more inbound/outbound parts of udp_sock_init() David Gibson
2025-10-21 21:51   ` Stefano Brivio
2025-10-22  0:08     ` David Gibson
2025-10-17  0:34 ` [PATCH 3/3] tcp, udp: Bind outbound listening sockets by interface instead of address David Gibson
2025-10-21 21:51   ` Stefano Brivio
2025-10-22  0:34     ` David Gibson
2025-10-22  8:59       ` Stefano Brivio
2025-10-23  1:18         ` David Gibson

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).