From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by passt.top (Postfix) with ESMTPS id 0B9A35A004F for ; Wed, 17 Jul 2024 02:36:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202312; t=1721176565; bh=T7dw4yR/6bVE9gTQOYi3iRJ+CCD5UB6nlJhE85xB0co=; h=From:To:Cc:Subject:Date:From; b=o4VBPXr4dT9hjpqYW2tOwwnyoCvGviTnGSmSabh7zqKPJXulbX/u6TS53QqvAu1nl C0Lo6twzrnxNzE43//xLBPaTmwBlp008Rux6sP6b4hcdBHQmmsuNRvoww9wReU9H0G pwAsRebWy9OtaEDkZqhhiGjCN1xLyWa1FHv1t4j9KnWNsW66v1JNm/yy5paR+2YX0t c3n+cxP8Jk2Utzdt0f2nqS1oxS4ZDF+IpHUmPh0tM6sYEMojXJw2c5uUl7U6xyx5am 3le/vgjZbcuqZn2LLTiC6GVZ5jLh8myPPITXAFXtGmwBIymeVS9hdp/wfFLioTH8p7 UfzOufGUEHicQ== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4WNxnK6kZrz4x0C; Wed, 17 Jul 2024 10:36:05 +1000 (AEST) From: David Gibson To: Stefano Brivio , passt-dev@passt.top Subject: [PATCH v2 0/5] Handle error events on UDP sockets Date: Wed, 17 Jul 2024 10:35:59 +1000 Message-ID: <20240717003604.1577052-1-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.45.2 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: NLOOSC3ECEPGUKZOPETTL5SNDUD4OLYX X-Message-ID-Hash: NLOOSC3ECEPGUKZOPETTL5SNDUD4OLYX 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: Add handling of the error queue for UDP sockets. We certainly need this for the flow table: this is the cause of the epoll loop that Stefano noticed. Even without the flow table it should improve robustness and debugability. Along the way we make a few other clean ups. Changes from v1: * Assorted minor changes based on Stefano's review David Gibson (5): conf: Don't configure port forwarding for a disabled protocol udp: Make udp_sock_recv static udp, tcp: Tweak handling of no_udp and no_tcp flags util: Add AF_UNSPEC support to sockaddr_ntop() udp: Handle errors on UDP sockets conf.c | 5 ++++ tcp.c | 14 ++++++++--- udp.c | 77 +++++++++++++++++++++++++++++++++++++++++++++++++++++++--- util.c | 33 +++++++++++++++++++++++++ util.h | 3 +++ 5 files changed, 125 insertions(+), 7 deletions(-) -- 2.45.2