public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
* [PATCH 0/3] Fix regression in auto port forwarding
@ 2025-11-19  4:26 David Gibson
  2025-11-19  4:26 ` [PATCH 1/3] Revert "fwd: Update all port maps before applying exclusions" David Gibson
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: David Gibson @ 2025-11-19  4:26 UTC (permalink / raw)
  To: passt-dev, Stefano Brivio; +Cc: David Gibson

My recently merged series cleaning up the auto-port-forward scanning
contained a series bug: automatic forwards would only appear on
alternating seconds.

This turned out to be due to a fundamentally broken premise in my
thinking.  I was thinking that for consistency we wanted the most
recent port map information throughout the process.  But that's not
really true: for the purposes of exclusion what we really need to know
is which of the listening sockets we scan are ours.  That's given by
the *prior* state of the forward maps, not the updated one based on a
new scan.

The series also had a number of worthwhile changes though.  This
series fixes it up, by reverting the most misguided of the patches and
correcting behaviour of another one while preserving the accompanying
code re-orgs.

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

David Gibson (3):
  Revert "fwd: Update all port maps before applying exclusions"
  fwd: Exclude ports based on prior mapping state
  fwd: Don't explicitly exclude reverse-direction TCP ports for UDP

 fwd.c | 44 ++++++++++++++++++++------------------------
 1 file changed, 20 insertions(+), 24 deletions(-)

-- 
2.51.1


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

end of thread, other threads:[~2025-11-21  4:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-19  4:26 [PATCH 0/3] Fix regression in auto port forwarding David Gibson
2025-11-19  4:26 ` [PATCH 1/3] Revert "fwd: Update all port maps before applying exclusions" David Gibson
2025-11-19  4:26 ` [PATCH 2/3] fwd: Exclude ports based on prior mapping state David Gibson
2025-11-19  4:26 ` [PATCH 3/3] fwd: Don't explicitly exclude reverse-direction TCP ports for UDP David Gibson
2025-11-21  4:45 ` [PATCH 0/3] Fix regression in auto port forwarding 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).