From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=none (p=none dis=none) header.from=gibson.dropbear.id.au Authentication-Results: passt.top; dkim=pass (2048-bit key; secure) header.d=gibson.dropbear.id.au header.i=@gibson.dropbear.id.au header.a=rsa-sha256 header.s=202502 header.b=aTN70mD5; dkim-atps=neutral Received: from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by passt.top (Postfix) with ESMTPS id F08F95A026F for ; Fri, 28 Feb 2025 05:48:55 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202502; t=1740718126; bh=0FtP9Xu0AT5UoiqH085omqQH2lrcnjB1DvnnLk5vfLE=; h=From:To:Cc:Subject:Date:From; b=aTN70mD5XzvEOryw10+vyQdWRPGxKkzHo24ZFmKm9swPYcJS9w+50T2wx4OO0sVQV RdELvMyyr9t4MTCv9dqx1iFeR2ipUzYLFwFFct/w625anJL88MeQqIPe9hemHqmY9n QEzYN+9Ygd3vIUFY47p5kMHV706FvbgVRhPnSvfoiufdZ51zOuNWd7upLZ6GnO4BFo SVaNDv2PEoZM/oP9FtvhOt5bwy4T+hdYki5084CCGiIJX1Zz92OKuP+NQ+VKoePRGl VRfc6b/l0NeFRYqgkeVfjzL2gtODaOs8h1GHsgFcXT9c3xKzFXDfbjHvWXh+tMpj1j 7ac04RJeXv5Ag== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4Z3whZ2qB4z4x5m; Fri, 28 Feb 2025 15:48:46 +1100 (AEDT) From: David Gibson To: passt-dev@passt.top, Stefano Brivio Subject: [PATCH 0/1] Send RST for guest packets with no flow Date: Fri, 28 Feb 2025 15:48:43 +1100 Message-ID: <20250228044844.861635-1-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.48.1 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: C5BJ27U5OHKLA7GN2MHZD6UGEOOYLKN2 X-Message-ID-Hash: C5BJ27U5OHKLA7GN2MHZD6UGEOOYLKN2 X-MailFrom: dgibson@gandalf.ozlabs.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: David Gibson X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: 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. David Gibson (1): tcp: Send RST in response to guest packets that match no connection tap.c | 13 +++++------ tap.h | 6 +++++ tcp.c | 72 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 84 insertions(+), 7 deletions(-) -- 2.48.1