From nobody Mon Oct 30 21:22:47 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SK5pJ1Hq7z4yRnJ; Mon, 30 Oct 2023 21:22:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SK5pJ0YcWz4L9M; Mon, 30 Oct 2023 21:22:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698700968; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Ki2aDsZCOH5QIHDoAbVT22wH0fYup1iPCQBuhPfxZ+M=; b=o5IsaWA1EbXqhwe6BAg5bXsishdqKHh3qzP2gTDiMvb5/80NZV/gsjsRpsGZ6hUIP5edRY AIQJJfg06PjcjjVzKntRlwkyhoWugCm6iKogtdY9qNPevuMF7zs7MgnUEHYHAW//EWWOvG 1wRvd1361/HU8FdMZHvvGphN2s/4A29hm7ncEkH0SR4UCTqRW/zwdFiI2jUhRrPa/cjotK SwGwHJrEkQJtRMzQ4YiRj5abqu1h3EsdTR9qIySY8JMlnXwTD0A/YhNFE5Lg8mDFIb4dw+ +udodoO3K1+mTVCAubdGR9qRLcQOQarBznhPthQpH6U3pCWObEbFYo/TdueYUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698700968; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Ki2aDsZCOH5QIHDoAbVT22wH0fYup1iPCQBuhPfxZ+M=; b=QF5B9aW9WO7ojtRpCUW4sYM9pZY0d7Q+N7ONh00kXH1Z1zHpZ/T6GC/7L9s+IL9S5uNJlA gxuhnZJoD65806qxq8xEQtQxA8Xw6Y2TXZin7fyDIs80QG3QQ5xFXYfs5n0jSLObDcdhif 9kOEeJWla2aWGDWi7hJ1WPD64MyQdeBGXNz+WMCCKN40CI05i/SvN6vLnJl+edubHuZ+eC yoNsa8KXZiJlNLrirz/OGCRTGlYKDqWnCLIkLkpFZ/ncR04vNPHWxyeUbauKhEt/9XPcrb L0PGAXSFS7m4U0lv6yt3iygeMWMCoUdFofidd7O8qZOBdEOmcOKRER5mgJ7blw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1698700968; a=rsa-sha256; cv=none; b=I1TntJwgQoZXcFJiURnsbIQQjVHl40XG2ylmKtXkCFdxVGTn5ZFDw0V6XkRNacMhAE92OV dZGBkMtAQQUv7gZs4dNq4K+4M5WGr9ovsamFfSKzUbh06jl08GANYnYthBRigXtfh1r/cn 8Q8qH7hJ0mJBieK4b3pyWBsFuir6yve9xfAf/sgNnjR+ISt0kX3j8mMtoXMY5NRbMnW4cv qCvJh9OiJFLU1fzJXobaB4N/sqBQoqZWv9tvOqXx7PXC9v7oMDjGWAik53sT6ZwXnytbhD 5KxLOX5yvFDLuzS08l9HLvBfZRzcp/d9I7mKc/ASGay+ykNiHL/RyHi19AlkMg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4SK5pH6jmlzcTX; Mon, 30 Oct 2023 21:22:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 39ULMlRw078861; Mon, 30 Oct 2023 21:22:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39ULMlSK078858; Mon, 30 Oct 2023 21:22:47 GMT (envelope-from git) Date: Mon, 30 Oct 2023 21:22:47 GMT Message-Id: <202310302122.39ULMlSK078858@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Cy Schubert Subject: git: fe1ae3d1c37d - main - security/wpa_supplicant-devel: Update to latest GH commit List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: cy X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: fe1ae3d1c37d5baea3657329daa060df742e8a0b Auto-Submitted: auto-generated The branch main has been updated by cy: URL: https://cgit.FreeBSD.org/ports/commit/?id=fe1ae3d1c37d5baea3657329daa060df742e8a0b commit fe1ae3d1c37d5baea3657329daa060df742e8a0b Author: Cy Schubert AuthorDate: 2023-10-30 21:09:59 +0000 Commit: Cy Schubert CommitDate: 2023-10-30 21:22:39 +0000 security/wpa_supplicant-devel: Update to latest GH commit Update to the latest w1.fi commit, proxied through my GH account. --- security/wpa_supplicant-devel/Makefile | 5 +- security/wpa_supplicant-devel/distinfo | 6 +- .../patch-src_l2__packet_l2__packet__freebsd.c | 64 +--------------------- 3 files changed, 7 insertions(+), 68 deletions(-) diff --git a/security/wpa_supplicant-devel/Makefile b/security/wpa_supplicant-devel/Makefile index 322d27a3335b..45f9039818d6 100644 --- a/security/wpa_supplicant-devel/Makefile +++ b/security/wpa_supplicant-devel/Makefile @@ -1,6 +1,5 @@ PORTNAME= wpa_supplicant PORTVERSION= ${COMMIT_DATE} -PORTREVISION= 4 CATEGORIES= security net PKGNAMESUFFIX= -devel @@ -11,8 +10,8 @@ WWW= https://w1.fi/wpa_supplicant/ USE_GITHUB= yes GH_ACCOUNT= cschuber GH_PROJECT= hostap -GH_TAGNAME= 2d4be0019 -COMMIT_DATE= 2023.10.05 +GH_TAGNAME= 77785da66 +COMMIT_DATE= 2023.10.30 LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/README diff --git a/security/wpa_supplicant-devel/distinfo b/security/wpa_supplicant-devel/distinfo index 4a5abd89f8be..7d128a0a9b51 100644 --- a/security/wpa_supplicant-devel/distinfo +++ b/security/wpa_supplicant-devel/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1696992513 -SHA256 (cschuber-hostap-2023.10.05-2d4be0019_GH0.tar.gz) = 79621569d1cafe506293ae3a76ee964655f22094f85297eff9d0e73851bbfb52 -SIZE (cschuber-hostap-2023.10.05-2d4be0019_GH0.tar.gz) = 5116272 +TIMESTAMP = 1698698882 +SHA256 (cschuber-hostap-2023.10.30-77785da66_GH0.tar.gz) = a7fd27b661bd3d52cd9a1c846e58ca162d08ba93be24fe5d13750baddade0d7a +SIZE (cschuber-hostap-2023.10.30-77785da66_GH0.tar.gz) = 5125026 diff --git a/security/wpa_supplicant-devel/files/patch-src_l2__packet_l2__packet__freebsd.c b/security/wpa_supplicant-devel/files/patch-src_l2__packet_l2__packet__freebsd.c index 74a89e71f0f8..2ec52fcdcd85 100644 --- a/security/wpa_supplicant-devel/files/patch-src_l2__packet_l2__packet__freebsd.c +++ b/security/wpa_supplicant-devel/files/patch-src_l2__packet_l2__packet__freebsd.c @@ -1,5 +1,5 @@ ---- src/l2_packet/l2_packet_freebsd.c.orig 2023-09-05 10:38:47.000000000 -0700 -+++ src/l2_packet/l2_packet_freebsd.c 2023-09-11 22:20:43.328481000 -0700 +--- src/l2_packet/l2_packet_freebsd.c.orig 2023-10-30 10:53:18.000000000 -0700 ++++ src/l2_packet/l2_packet_freebsd.c 2023-10-30 14:10:36.396969000 -0700 @@ -8,7 +8,10 @@ */ @@ -12,63 +12,3 @@ #include #endif /* __APPLE__ */ #include -@@ -20,6 +23,7 @@ - #include - #endif /* __sun__ */ - -+#include - #include - #include - #include -@@ -76,24 +80,33 @@ - { - struct l2_packet_data *l2 = eloop_ctx; - pcap_t *pcap = sock_ctx; -- struct pcap_pkthdr hdr; -+ struct pcap_pkthdr *hdr; - const u_char *packet; - struct l2_ethhdr *ethhdr; - unsigned char *buf; - size_t len; - -- packet = pcap_next(pcap, &hdr); -+ if (pcap_next_ex(pcap, &hdr, &packet) == -1) { -+ wpa_printf(MSG_ERROR, "Error reading packet, has device disappeared?"); -+ packet = NULL; -+ eloop_terminate(); -+ } - -- if (!l2->rx_callback || !packet || hdr.caplen < sizeof(*ethhdr)) -+ if (!l2->rx_callback || !packet || hdr->caplen < sizeof(*ethhdr)) - return; - - ethhdr = (struct l2_ethhdr *) packet; - if (l2->l2_hdr) { - buf = (unsigned char *) ethhdr; -- len = hdr.caplen; -+ len = hdr->caplen; - } else { - buf = (unsigned char *) (ethhdr + 1); -- len = hdr.caplen - sizeof(*ethhdr); -+ len = hdr->caplen - sizeof(*ethhdr); -+ /* handle 8021Q encapsulated frames */ -+ if (ethhdr->h_proto == htons(ETH_P_8021Q)) { -+ buf += ETHER_VLAN_ENCAP_LEN; -+ len -= ETHER_VLAN_ENCAP_LEN; -+ } - } - l2->rx_callback(l2->rx_callback_ctx, ethhdr->h_source, buf, len); - } -@@ -122,10 +135,10 @@ - os_snprintf(pcap_filter, sizeof(pcap_filter), - "not ether src " MACSTR " and " - "( ether dst " MACSTR " or ether dst " MACSTR " ) and " -- "ether proto 0x%x", -+ "( ether proto 0x%x or ( vlan 0 and ether proto 0x%x ) )", - MAC2STR(l2->own_addr), /* do not receive own packets */ - MAC2STR(l2->own_addr), MAC2STR(pae_group_addr), -- protocol); -+ protocol, protocol); - if (pcap_compile(l2->pcap, &pcap_fp, pcap_filter, 1, pcap_netp) < 0) { - fprintf(stderr, "pcap_compile: %s\n", pcap_geterr(l2->pcap)); - return -1;