public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
* [PATCH v2 0/3] Send RST for guest packets with no flow
@ 2025-03-05  4:32 David Gibson
  2025-03-05  4:32 ` [PATCH v2 1/3] ip: Helpers to access IPv6 flow label David Gibson
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: David Gibson @ 2025-03-05  4:32 UTC (permalink / raw)
  To: passt-dev, Stefano Brivio; +Cc: David Gibson

As we discussed on email, this adds support for sending an RST in
response to packets from the guest which don't match an existing flow
and are neither SYN (requesting a new connection) nor themselves RST.

This is a sligjhtly larger patch than I'd like, but I can't really see
a way to simplify it without making fairly extensive reworks to share
more code with paths for RST where there is a known connection.  That
would end up being more churn.

This doesn't (IMO) correctly handle IPv6 flow labels.  Fixing that
raises several additional issues regarding flow labels, so I've
decided to defer that for now.

v2:
 * Assorted cosmetic fixups
 * Use correct IPv6 flow label for packets
   * This required two preliminary patches
 * tcp_rst_no_conn() is now static

David Gibson (3):
  ip: Helpers to access IPv6 flow label
  tap: Consider IPv6 flow label when building packet sequences
  tcp: Send RST in response to guest packets that match no connection

 ip.h  | 24 ++++++++++++++++++
 tap.c | 25 ++++++++++---------
 tap.h |  6 +++++
 tcp.c | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++---
 tcp.h |  2 +-
 5 files changed, 118 insertions(+), 17 deletions(-)

-- 
2.48.1


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

end of thread, other threads:[~2025-03-05 20:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-05  4:32 [PATCH v2 0/3] Send RST for guest packets with no flow David Gibson
2025-03-05  4:32 ` [PATCH v2 1/3] ip: Helpers to access IPv6 flow label David Gibson
2025-03-05  4:32 ` [PATCH v2 2/3] tap: Consider IPv6 flow label when building packet sequences David Gibson
2025-03-05  4:32 ` [PATCH v2 3/3] tcp: Send RST in response to guest packets that match no connection David Gibson
2025-03-05 20:46 ` [PATCH v2 0/3] Send RST for guest packets with no flow 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).