public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
* [PATCH v2 0/2] Allow listen functions to return fds
@ 2026-01-13  3:06 David Gibson
  2026-01-13  3:06 ` [PATCH v2 1/2] tcp, udp, conf: Don't silently ignore listens on unsupported IP versions David Gibson
  2026-01-13  3:06 ` [PATCH v2 2/2] tcp, udp: Make {tcp,udp}_listen() return socket fds David Gibson
  0 siblings, 2 replies; 3+ messages in thread
From: David Gibson @ 2026-01-13  3:06 UTC (permalink / raw)
  To: passt-dev, Stefano Brivio; +Cc: David Gibson

For future forwarding changes, it makes more sense for the tcp and udp
listen functions to return socket fds, rather than just success /
failure.  Make the change, fixing bug 186 along the way.

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

Changes in v2:
 * Fix several typos in comments and commit messages
 * Drop the --no-bindtodevice option, I was convinced it wasn't useful
   enough
 * Change from -EACCES to -EAFNOSUPPORT error code

David Gibson (2):
  tcp, udp, conf: Don't silently ignore listens on unsupported IP
    versions
  tcp, udp: Make {tcp,udp}_listen() return socket fds

 conf.c | 24 +++++++++++++++++-------
 tcp.c  | 13 ++++---------
 udp.c  | 10 ++++------
 3 files changed, 25 insertions(+), 22 deletions(-)

-- 
2.52.0


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

end of thread, other threads:[~2026-01-13  3:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-01-13  3:06 [PATCH v2 0/2] Allow listen functions to return fds David Gibson
2026-01-13  3:06 ` [PATCH v2 1/2] tcp, udp, conf: Don't silently ignore listens on unsupported IP versions David Gibson
2026-01-13  3:06 ` [PATCH v2 2/2] tcp, udp: Make {tcp,udp}_listen() return socket fds 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).