From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by passt.top (Postfix) with ESMTPS id 0357A5A031C for ; Tue, 16 Jul 2024 07:29:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202312; t=1721107778; bh=3r2OcD4LqBfLfFy9iEfzzt9vnFv55+Rd9SL8wbP18hQ=; h=From:To:Cc:Subject:Date:From; b=J+vRsVYnLi92oRq1+4QbUdbZ8JrTy6/JsEf25P4sduCFptwZ5l884EZuHRpT/v02l 755nZL65MNoU5oVsl4IylUnohhG2ZYvNn7aB/MaB4cUTed5yZ2tNrBox+3BBFyTxaL v8Z5Z8IeUfgpMEzopXxiIV7tl8v6gq6jpIkn4ybOwH1qn6wRSBt37foWWv4jm04fjH OCli/yMlyV9+Q0tb4BnFIcN6IYvhKTUXn8VJ1DnAkNXYS/wu+/kxT7QexkcayWT5Pt /Z05oHgE2XDyWsRIsdZHNMOvkshnXcEQ76c0q0k7ax3sqnctMLK0X4pZZfXeVMOVHi 7gVZRtVpL8k5Q== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4WNSLV4Q4cz4wc4; Tue, 16 Jul 2024 15:29:38 +1000 (AEST) From: David Gibson To: Stefano Brivio , passt-dev@passt.top Subject: [PATCH 0/5] Handle error events on UDP sockets Date: Tue, 16 Jul 2024 15:29:31 +1000 Message-ID: <20240716052936.1204164-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: QDK6NYPCG337UZU6TWCB7VOBYA6GO35D X-Message-ID-Hash: QDK6NYPCG337UZU6TWCB7VOBYA6GO35D 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. 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 | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++++++---- util.c | 33 +++++++++++++++++++++++++ util.h | 3 +++ 5 files changed, 124 insertions(+), 7 deletions(-) -- 2.45.2