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=WLR/bpc6; dkim-atps=neutral Received: from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by passt.top (Postfix) with ESMTPS id 3175B5A0274 for ; Wed, 11 Mar 2026 13:03:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202602; t=1773230596; bh=dRJyUolcBjNxXuKPZSgO1u+D9J6x9I/SqqD+VzZX3g4=; h=From:To:Cc:Subject:Date:From; b=WLR/bpc68TCrJOP7gw6b8eEX2OzFpsf+dCCIP0Tg8qUMwKWnnKL1oGDZeVTC432qG kvyOOtFUSo+ugV9u87DCYUzTgvaXXPPYNyCKLMekRr8hGwR8K92Ua6ZQ/tubyzYjXw zQRz4rivWxN5twYCplN2I9FtTWw1tn7osTmT8Y3P5ZEQlkH0utylQ8KgcWfvWhwJ8n tFEuVF2Ey6h1srRI7SPA60HTjVttwRgtMCXASIyPcrsNOCtdS6gnWXxJ0rMkO5jzXM P7dXy1yzH/anMGv2/HcIqig2aIz8DUE9WBKr6wfDbs5goMDJpaPBwpZI51VRBAKA7q cuQlIN2Fiaw6Q== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4fW8XN1HPyz4wCP; Wed, 11 Mar 2026 23:03:16 +1100 (AEDT) From: David Gibson To: passt-dev@passt.top, Stefano Brivio Subject: [PATCH v2 0/9] Unify TCP and UDP forwarding tables Date: Wed, 11 Mar 2026 23:03:05 +1100 Message-ID: <20260311120314.933546-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: GC6CSPCEW4RVYGF7B4BUTTD5LEGV62HB X-Message-ID-Hash: GC6CSPCEW4RVYGF7B4BUTTD5LEGV62HB 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. Changes in v2: * Several documentation and whitespace changes * Updated MAX_LISTEN_SOCKS since it's now per pif but not per protocol * Actually removed old TCP tables, overlooked before * Added 2 additional cleanup patches David Gibson (9): 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 fwd: Always open /proc/net{tcp,tcp6,udp,udp6} in pasta mode conf: Don't defer handling of --dns option conf: Parse all forwarding options at the same time conf.c | 225 ++++++++++++++++++++++++++------------------------ flow.c | 25 ++---- fwd.c | 249 ++++++++++++++++++++++++++++++++++---------------------- fwd.h | 67 +++++++-------- passt.c | 3 + passt.h | 7 +- tcp.c | 8 +- tcp.h | 9 +- udp.c | 9 +- udp.h | 8 +- 10 files changed, 331 insertions(+), 279 deletions(-) -- 2.53.0