From: David Gibson <david@gibson.dropbear.id.au>
To: passt-dev@passt.top, Stefano Brivio <sbrivio@redhat.com>
Cc: David Gibson <david@gibson.dropbear.id.au>
Subject: [PATCH 0/3] RFC: Reduce differences between inbound and outbound socket binding
Date: Fri, 17 Oct 2025 11:34:44 +1100 [thread overview]
Message-ID: <20251017003447.414103-1-david@gibson.dropbear.id.au> (raw)
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
next reply other threads:[~2025-10-17 0:34 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-17 0:34 David Gibson [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251017003447.414103-1-david@gibson.dropbear.id.au \
--to=david@gibson.dropbear.id.au \
--cc=passt-dev@passt.top \
--cc=sbrivio@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).