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=h3RPMBwC; dkim-atps=neutral Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by passt.top (Postfix) with ESMTPS id B9D345A0772 for ; Mon, 05 Jan 2026 09:28:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202512; t=1767601732; bh=i+nZZO+rRydh5TRg6XGEJdvxt5AL0A8ntzaZeCgNFoY=; h=From:To:Cc:Subject:Date:From; b=h3RPMBwCX1qyTc4cj27lZ5zASUhus20385aZwN2xElDi7pbmwsnAxxtyEP+QgYJqA 1nnCfYd5pa/vK2+CuS0hHbZuwOdQ5rwBAcY1fmxb47HM9C/0ow4iUSZIeuX7nXTNDF 1ZdJvwmwqgmzIqdnuncCfnY3DR/bUXScICEkkwVxSmELQ3Zk88qPiQsjjE4HpnT3Ge bs2pmhh9oDj+EcOhUQR/AhGLjragTQLqgLFvNB+l8StUxN5iVbNioZFBJYAnZyxe4S JtD1XF5ivxGb3PXd7iGRD9uId7wvQquXQf5fonTDrjXrhBnK/ghIAJVx/vm3Ri1mro rrkAA3/34tFbw== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4dl6s01xDdz4wCx; Mon, 05 Jan 2026 19:28:52 +1100 (AEDT) From: David Gibson To: Stefano Brivio , passt-dev@passt.top Subject: [PATCH 0/3] Allow listen functions to return fds Date: Mon, 5 Jan 2026 19:28:47 +1100 Message-ID: <20260105082850.1985300-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: JR7G6OZU4MENAUFD2T25QLDFUTDBT6ED X-Message-ID-Hash: JR7G6OZU4MENAUFD2T25QLDFUTDBT6ED 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: For future forwarding changes, it makes more sense for the tcp and udp listen functions to return socket fds, rather than just success / failure. Make the change, fixing bug 186 and adding a debugging option along the way. Link: https://bugs.passt.top/show_bug.cgi?id=186 David Gibson (3): conf: Introduce --no-bindtodevice option for testing tcp, udp, conf: Don't silently ignore listens on unsupported IP versions tcp, udp: Make {tcp,udp}_listen() return socket fds conf.c | 26 +++++++++++++++++++------- passt.1 | 6 ++++++ tcp.c | 13 ++++--------- udp.c | 10 ++++------ 4 files changed, 33 insertions(+), 22 deletions(-) -- 2.52.0