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=202512 header.b=BrE0cIqv; dkim-atps=neutral Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by passt.top (Postfix) with ESMTPS id 93B895A0627 for ; Fri, 12 Dec 2025 08:10:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202512; t=1765523440; bh=R9837uzLKlDUoszuw9EQagJWTkh7i3jVg/KnVpOIWlM=; h=From:To:Cc:Subject:Date:From; b=BrE0cIqv8c8bTC543vsibENLsD7kPEc6zCy7aTdlVkFrEUy86VY3pYTcRYRKoCxKr mWGwgc5NGbz92V/46T5GQlBvFqhxcKc+SCRp9thWZgjIta+59Lin1t9grcfGz0gtH8 MQqYuiRsja1SXwNVDDmuG/YiX7ktOgKCHne+q6RsHB74xf6DdCJBbu7CBS52k2MFNM zIrkOWWyNv1pcDDe62ftW+jD6jLFR8BHfBaGwJLMemfhwuweoiT9RtPwetg4ohPyfl 2pLw4dpHvgPKlbuFErdfyR3o+AbBrkMWmOybUFddQ07aT2PZn8lr7bNn4qtfS7xGLt LzOmgaunF/osg== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4dSLFr1RH5z4wHj; Fri, 12 Dec 2025 18:10:40 +1100 (AEDT) From: David Gibson To: passt-dev@passt.top, Stefano Brivio Subject: [PATCH 0/5] RFC: Forwarding table data structure Date: Fri, 12 Dec 2025 18:10:33 +1100 Message-ID: <20251212071038.3943933-1-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.52.0 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: YX4Q2GSG7UYR3NXARMP4MI74A3RLHMYD X-Message-ID-Hash: YX4Q2GSG7UYR3NXARMP4MI74A3RLHMYD 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: Here's some patches starting to create a data structure to store more flexible (and eventually dynamically updateable) forwarding configuration. So far this is just creating the data structures, not actually using them to drive the rest of the code, so it's not ready for merge (but the preliminaries in 1..2/5 could be merged if you like). Putting it out there for early review. David Gibson (5): tcp: Remove extra space from TCP_INFO debug messages (trivial) conf, fwd: Move initialisation of auto port scanning out of conf() conf, fwd: Keep a table of our port forwarding configuration conf: Accurately record ifname and address for outbound forwards conf, fwd: Record "auto" port forwards in forwarding table conf.c | 140 +++++++++++++++++++++++++++++++++++++++++--------------- fwd.c | 78 +++++++++++++++++++++++++++++++ fwd.h | 33 +++++++++++++ passt.c | 1 + tcp.c | 2 +- 5 files changed, 216 insertions(+), 38 deletions(-) -- 2.52.0