From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gandalf.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by passt.top (Postfix) with ESMTPS id E90185A0272 for ; Wed, 15 Nov 2023 06:25:45 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=201602; t=1700025940; bh=sD27nyrotomUdCaDHWRQQhy2uKaTJyKxenQPM5l/zOM=; h=From:To:Cc:Subject:Date:From; b=dEz3BSAhJA+eLeQKFr84vN4V3m3PpLaS1tB1EWdZ+KFmaHrXOF9ycpTW4bHYW0Wak yWNYHQ57x4EHthf0/YKAezRF8zrmFChXQ6V1mz61No91HrVDnlH8zxRiX2yxw5pOWJ kTfhznbw3GMgNVmJ6owR9ahxr2BrJ00h+BWeiDSc= Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4SVWpX26WNz4x2W; Wed, 15 Nov 2023 16:25:40 +1100 (AEDT) From: David Gibson To: Stefano Brivio , passt-dev@passt.top Subject: [PATCH 0/3] pasta: Implement runtime auto-forwarding for UDP Date: Wed, 15 Nov 2023 16:25:31 +1100 Message-ID: <20231115052534.1826261-1-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.41.0 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: LTLEMOREXDTUKQKZJCME4TG2UZ2Q7YR5 X-Message-ID-Hash: LTLEMOREXDTUKQKZJCME4TG2UZ2Q7YR5 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: In "auto" mode port forwarding, we scan for listening TCP ports at start up, and then every second thereafter. For UDP, however, we scan only at start up. That's documented, but surprising, and there's no real reason for it to be that way. Implement periodic scanning for UDP auto forwarding too. Link: https://bugs.passt.top/show_bug.cgi?id=45 *** BLURB HERE *** David Gibson (3): tcp: Use common helper for rebinding inbound and outbound ports tcp: Simplify away tcp_port_rebind() udp,pasta: Periodically scan for ports to automatically forward passt.1 | 3 +- tcp.c | 109 +++++++++++++++++++++++--------------------------------- udp.c | 74 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 120 insertions(+), 66 deletions(-) -- 2.41.0