From nobody Tue Dec 21 23:35:26 2021 X-Original-To: dev-commits-src-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 721501900F2B; Tue, 21 Dec 2021 23:35:28 +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 4JJXrH10Tnz3pTp; Tue, 21 Dec 2021 23:35:26 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 CC9321310C; Tue, 21 Dec 2021 23:35:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1BLNZQmY049683; Tue, 21 Dec 2021 23:35:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BLNZQdq049682; Tue, 21 Dec 2021 23:35:26 GMT (envelope-from git) Date: Tue, 21 Dec 2021 23:35:26 GMT Message-Id: <202112212335.1BLNZQdq049682@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Cy Schubert Subject: git: 3c937e88d7ca - stable/13 - ipfilter: Fix struct ifnet pointer type List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-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: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 3c937e88d7caea9be0122de2823c537d28e30160 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640129728; 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=o16uQ9/hR7Q2JyL4g43mkhlKjHk3HPHYLwyKQwryLoE=; b=ZF3se3LNH6qie0UFRTaCJbvzFM4O5iBt0Fa4kIgGQeYP4HJ98JGz7YeQuI7zmmeZZtCnu8 IAPfVzo+rYuPw563TkZp+un7pu/nAI06WugsSmLWqmvQuRYdA9PKUI1kWoVkXZIc1xG0Vw iJ8bEpsTs+11wsshEOEbfkW/pblexMfpNcWmMUXZGh13edrbpU3HbCqfjbUKlQIbr0CMFT 7mZkU8re0fZHzcROFh5fCwPyOHaQIO+QNdLXXImbxIhIKmbqX2BOyh8RzNOzR2sSzuRNRl N0erAMjvIsh8PQBf8y57uKY6OTxONW1giZIUqD9y/HyJ7CcwXIJrkbq588rO+A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640129728; a=rsa-sha256; cv=none; b=i7q25qBtK/dxf+rRdS3SOSjza5zDalxjDt5L6Oa+hgFROXcvXlyhGRsJKJULAb2Gl4xtHM 9wRT87TWVu6QxRvypFrkTyIv5llXum9WyUH/7mjowS4OnLH2h+0IMgzKQj4r4p4n5B+7Ey r25d8QT+iuJOYSHFyhbP/J6rXe87tBMRu18wYLDt/hX6sILW18/fUCLc/Dd8SWpLYQsTqd zhDXm/z4yOEkR6RT7mLvVOjQwUGO33/vGsPcyrITT6y5q66h5bbZbA2FDRJwPww9HSHOuO s8SfDaXrOl9RkBmo1ukR/oDoI3imTieP7KzAKdHdFfPdo9aSAV/hQ7m8kX91yA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by cy: URL: https://cgit.FreeBSD.org/src/commit/?id=3c937e88d7caea9be0122de2823c537d28e30160 commit 3c937e88d7caea9be0122de2823c537d28e30160 Author: Cy Schubert AuthorDate: 2021-12-12 23:57:36 +0000 Commit: Cy Schubert CommitDate: 2021-12-21 23:34:41 +0000 ipfilter: Fix struct ifnet pointer type The fr_info struct contains a summary of a packet. One of its fields is a pointer to the ifnet struct the packet arrived on. It is pointed to by a void* because ipfilter supports multiple O/Ses. Unfortunately this makes it difficult it examine with DTrace. Defining fin_ifp as a pointer to an ifnet struct makes the struct it points to using a DTrace script possible. (cherry picked from commit 8f19f3d31a7224c502c36dd16f1321b802e4da60) --- sys/contrib/ipfilter/netinet/ip_fil.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/contrib/ipfilter/netinet/ip_fil.h b/sys/contrib/ipfilter/netinet/ip_fil.h index 8cb988e1fd17..be8e023ac0ba 100644 --- a/sys/contrib/ipfilter/netinet/ip_fil.h +++ b/sys/contrib/ipfilter/netinet/ip_fil.h @@ -358,7 +358,11 @@ typedef enum ipf_cksum_e { typedef struct fr_info { void *fin_main_soft; +#ifdef __FreeBSD__ + struct ifnet *fin_ifp; /* interface packet is `on' */ +#else void *fin_ifp; /* interface packet is `on' */ +#endif struct frentry *fin_fr; /* last matching rule */ int fin_out; /* in or out ? 1 == out, 0 == in */ fr_ip_t fin_fi; /* IP Packet summary */