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=202408 header.b=KM3PHDqF; dkim-atps=neutral Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by passt.top (Postfix) with ESMTPS id 4D57C5A0275 for ; Tue, 27 Aug 2024 08:04:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202408; t=1724738688; bh=x4l7sZmbKVbxvo8NiV6VLSRAq845QmuCQ9xdxoqgSdM=; h=From:To:Cc:Subject:Date:From; b=KM3PHDqF6yIxKRk1vXNMJnS0O087NbLKuENWdqKCk9vWztKLr0OkLt8KxFzOiBLIc yMik8p8aEYEt/WdT5yV4FCH9O5/teDNyYmqgsuwP4H6AQHdxrmJrWZ5EKC970tEap0 CBFC4DHk472eyy7qJuvBujshireXVOvYgqC4VHUWuYPgV/2yVHwOIutfHCuCwrUsJf coe3yrNq8VdvQSnUbjJr7Kw3miKMzQcEP6b0ep+jgldRzB+y1kv9CVoURfS6KFr+jM 9MoEIOQeQOjXa3GtfIsewfJGo4kFSgUdcrbA/4Pood5tscnDfzfknYM6kQvxIM+Cx7 ipuf+S+KQTBfw== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4WtH7h0fj1z4x8C; Tue, 27 Aug 2024 16:04:48 +1000 (AEST) From: David Gibson To: passt-dev@passt.top, Stefano Brivio Subject: [PATCH v2 0/3] Dual stack sockets for UDP Date: Tue, 27 Aug 2024 16:04:43 +1000 Message-ID: <20240827060446.2601102-1-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.46.0 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: FXZFOOLJPUSDGQCRPPSEDHEFIZBSORKE X-Message-ID-Hash: FXZFOOLJPUSDGQCRPPSEDHEFIZBSORKE 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, at last, is a change to use dual stack sockets for UDP port forwards as we have for TCP for some time. With the merging of many parallel IPv4/IPv6 structures being done for the flow table and other recent work, this actually turned out much easier than I anticipated. Changes since v1: * Removed a redundant assignment to msg_namelen David Gibson (3): udp: Merge udp[46]_mh_recv arrays udp: Remove unnnecessary local from udp_sock_init() udp: Use dual stack sockets for port forwarding when possible udp.c | 101 +++++++++++++++++++++++++++++----------------------------- udp.h | 2 -- 2 files changed, 50 insertions(+), 53 deletions(-) -- 2.46.0