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=202602 header.b=X2Pcc6n7; dkim-atps=neutral Received: from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by passt.top (Postfix) with ESMTPS id 0ACF75A0262 for ; Tue, 10 Mar 2026 05:16:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202602; t=1773116167; bh=EsyAn/hl4+dfYrYkywdrADkK6URqNqOTI0mA+H/jt7E=; h=From:To:Cc:Subject:Date:From; b=X2Pcc6n77Rm+37C/vrH3pHF0JyVz8K5bDLlJMYj1ulVhf3HzJUkc/8d1EelFeWd5X CK9WlVxQ4b3HukeCZgjvOaEOLoJy3Npb6WAcCVtwk1kMNV5hmHgDQnk8kcK/VyytOE +vT+6vg1LytW5JgMVSJvBAAxAZcSkpsaOe3UNPjvdctLQwqXaPwWTyXN6mEr1L7ayW xaqxJloH76PT21xdFeQlgMi9HrToqJ+nnmyexWSUfajs8lo7laT7Zge46s1qQbGdtz EQgMX6I8ZsxXXAR4UJPUK8QJ76vR1gXQFMw95ypjLn3Ona+OyJKLZDUd0bo/QecWKv GXjPG02GEbo9Q== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4fVLCq51S6z4wDK; Tue, 10 Mar 2026 15:16:07 +1100 (AEDT) From: David Gibson To: Stefano Brivio , passt-dev@passt.top Subject: [PATCH 0/6] Unify TCP and UDP forwarding tables Date: Tue, 10 Mar 2026 15:15:59 +1100 Message-ID: <20260310041605.1322552-1-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.53.0 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: 5DIUQVLU2UCLYXLMV6HFMPKSQ7ZRJXD5 X-Message-ID-Hash: 5DIUQVLU2UCLYXLMV6HFMPKSQ7ZRJXD5 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: This will make the dynamic update protocol and future forwarding extensions easier. Along the way I spotted a number of other minor faults, and have fixed those too. David Gibson (6): conf, fwd: Make overall forwarding mode local to conf path tcp: Remove stale description of port_to_tap field fwd: Don't initialise unused port bitmaps Fix misnamed field in struct ctx comments fwd: Split forwarding table from port scanning state fwd: Unify TCP and UDP forwarding tables conf.c | 129 ++++++++++++++++------------- flow.c | 23 ++---- fwd.c | 247 ++++++++++++++++++++++++++++++++++---------------------- fwd.h | 58 ++++++------- passt.c | 3 + passt.h | 7 +- tcp.c | 8 +- tcp.h | 11 +-- udp.c | 9 +-- udp.h | 8 +- 10 files changed, 282 insertions(+), 221 deletions(-) -- 2.53.0