Message ID | 202504221832.53MIWGd4060308@plan-b.pwste.edu.pl |
---|---|
State | New |
Headers | show
Return-Path: <hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=HlFIvRoe; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=desiato.20200630 header.b=d+tkTnMM; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=plan-b.pwste.edu.pl header.i=@plan-b.pwste.edu.pl header.a=rsa-sha256 header.s=plan-b-mailer header.b=An55FM12; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4ZhvYx62gkz1yMm for <incoming@patchwork.ozlabs.org>; Wed, 23 Apr 2025 06:52:19 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:To:Subject:Date:From: Resent-To:Resent-Message-ID:Resent-Date:Resent-From:Message-Id:Reply-To:Cc: Content-ID:Content-Description:Resent-Sender:Resent-Cc:In-Reply-To:References :List-Owner; bh=MIBTlv6a9nMClfXFTsJODLD7x3c1oGqSWentBUc+Myc=; b=HlFIvRoeFEe72 x9GuBIDfQkoJJxkykZRxNMhMtMbzIhHkFrU3yR/fTAymr+Rx2V+60LZ+YohE/dAytlqlmUQxfDril 727xD3USGKeG5+bGjS2QJSKIWppsZ9d4uz978w2n/J/osDEprlT/KA41WFOKzTZQrOF33fOIoPU53 rgSQih+/dSprwWGK0Pk68RTDOT89Rbb8MPilf8OPjmmwfJj4FW2jLh4jQbzuyMmG5SQP1xuln2Fey fojXTnAUbqlspsjZnARjEb1mtY6SR5+gCqKWpfbwvBngXBPHeZS00HQ5wbBBXgNVadtzQw/43Wy2e 80SK+NzQJYLZRD/hTXjiw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1u7Kb9-00000008VHa-3leE; Tue, 22 Apr 2025 20:52:07 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1u7IPz-00000008Air-0UT4 for hostap@bombadil.infradead.org; Tue, 22 Apr 2025 18:32:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=To:Subject:Date:From:Resent-To: Resent-Message-ID:Resent-Date:Resent-From:Message-Id:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:In-Reply-To:References; bh=eJpCVxAPwTpJMrTGi8ZnCBa+IOPcyaSqj7UMGgDu9qM=; b=d+tkTnMMlY0SfeyCsRUxQWgzbF d1uH6GwvJMp5WTPmx8AM7/HlGNtaggCcuiDxLdUyHTfnYEl4SJJzKeG0B5Jhns8/ayIgCgloj9oIz mfFvVpyv2FrEtOXloPetNOKCZdO8omRk7gfSIHJK9krE+kQykkFYvP78vZcr5YLS0j97b8uOsTLvR Sc+Ks0y72sr9aMgJjSd6dF05rOCd6LoMNp5pnGIHSDx3YLIJ7WyF8hJYK93rFykxpT5We0xJoYi2o W8Ps1Vd02Bt8afT4tCba6WyBCBvKT8NwNaPTy5ITvuyiBa+Yw3kdyb7D0h5lSWUcziHLalHMtWtUH dmwmreqQ==; Received: from plan-b.pwste.edu.pl ([2001:678:618::40]) by desiato.infradead.org with esmtps (Exim 4.98.1 #2 (Red Hat Linux)) id 1u7IPv-0000000BHBI-37d1 for hostap@lists.infradead.org; Tue, 22 Apr 2025 18:32:25 +0000 Received: from plan-b.pwste.edu.pl (zarychtam@localhost [127.0.0.1]) by plan-b.pwste.edu.pl (8.18.1/8.17.2) with ESMTPS id 53MIWHdk060309 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for <hostap@lists.infradead.org>; Tue, 22 Apr 2025 20:32:17 +0200 (CEST) (envelope-from zarychtam@plan-b.pwste.edu.pl) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=plan-b.pwste.edu.pl; s=plan-b-mailer; t=1745346737; bh=rzPOfMW/t6uHEoNxxAv646VszzIIBjy2I/Xd4NZN/XM=; h=Resent-From:Resent-Date:Resent-To:From:Date:Subject; b=An55FM12IHhU5v2I4Y7+rG2bb+ZSj8gshCFh/fAG7gmkGWgoncIBgQIi/K4/cLTlM GjYFrz8iJGyQ9/Ow7pI88w6BX7BYx4ua8vaDFx7PfIxxnCcjYghBV9a1mYJTOFY3tW jmsUkmVj+CGb/CfBi7RPj7KDa25RwQfJiQW+PYd/hl2I6ld6LPiM+LeRgEtDMLvfTr Z/Os2fusGzZ+q06w4G8824BfGFDZRPa2bD86XHz/w2EPSalyN7QSQIi+TQ3Cqze6nx LQ0rGyqlVNbCkOsF4PCYwQZ3hWM3CJoM3XgoF56bgB+ZqL0/fYhgm5d9zycw2pAQZ3 vem0euSvWCSVQ== Received: (from zarychtam@localhost) by plan-b.pwste.edu.pl (8.18.1/8.18.1/Submit) id 53MIWGd4060308 for hostap@lists.infradead.org; Tue, 22 Apr 2025 20:32:16 +0200 (CEST) (envelope-from zarychtam) Message-Id: <202504221832.53MIWGd4060308@plan-b.pwste.edu.pl> Resent-From: Marek Zarychta <zarychtam@plan-b.pwste.edu.pl> Resent-Date: Tue, 22 Apr 2025 20:32:16 +0200 Resent-Message-ID: <aAfgsFYQftRTa0rZ@plan-b.pwste.edu.pl> Resent-To: hostap@lists.infradead.org From: Marek Zarychta <zarychtam@plan-b.pwste.edu.pl> Date: Tue, 22 Apr 2025 18:25:04 +0200 Subject: [PATCH] BSD: handle systems without legacy IP support To: undisclosed-recipients:; X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250422_193224_093603_DD76EF63 X-CRM114-Status: GOOD ( 10.33 ) X-Spam-Score: -2.5 (--) X-Spam-Report: Spam detection software, running on the system "desiato.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Currently, wpa_supplicant fails to operate when legacy IP support is disabled (i.e., the system is built with WITHOUT_INET and the kernel is configured with nooptions INET). This patch addresses the i [...] Content analysis details: (-2.5 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [2001:678:618:0:0:0:0:40 listed in] [list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <hostap.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/hostap>, <mailto:hostap-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/hostap/> List-Post: <mailto:hostap@lists.infradead.org> List-Help: <mailto:hostap-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/hostap>, <mailto:hostap-request@lists.infradead.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Hostap" <hostap-bounces@lists.infradead.org> Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
Series |
BSD: handle systems without legacy IP support
|
expand
|
diff --git a/src/drivers/driver_bsd.c b/src/drivers/driver_bsd.c index 66155b41c..3ca5ae478 100644 --- a/src/drivers/driver_bsd.c +++ b/src/drivers/driver_bsd.c @@ -1684,9 +1684,19 @@ bsd_global_init(void *ctx) global->sock = socket(PF_INET, SOCK_DGRAM | SOCK_CLOEXEC, 0); if (global->sock < 0) { + if (errno == EAFNOSUPPORT || errno == EPROTONOSUPPORT) { + wpa_printf(MSG_INFO, "INET not supported, trying INET6..."); + global->sock = socket(PF_INET6, SOCK_DGRAM | SOCK_CLOEXEC, 0); + if (global->sock < 0) { + wpa_printf(MSG_ERROR, "socket[PF_INET6,SOCK_DGRAM]: %s", + strerror(errno)); + goto fail1; + } + } else { wpa_printf(MSG_ERROR, "socket[PF_INET,SOCK_DGRAM]: %s", strerror(errno)); goto fail1; + } } global->route = socket(PF_ROUTE,
Currently, wpa_supplicant fails to operate when legacy IP support is disabled (i.e., the system is built with WITHOUT_INET and the kernel is configured with nooptions INET). This patch addresses the issue by enabling wpa_supplicant to run and connect to wireless networks even in the absence of AF_INET, as long as AF_INET6 is available. Signed-off-by: Marek Zarychta <zarychtam@plan-b.pwste.edu.pl> --- src/drivers/driver_bsd.c | 10 ++++++++++ 1 file changed, 10 insertions(+)