From nobody Mon Feb 03 18:09:25 2025 X-Original-To: dev-commits-src-main@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 4Ymvdy0k9fz5mHmr; Mon, 03 Feb 2025 18:09:26 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Ymvdx4hw7z3SqZ; Mon, 03 Feb 2025 18:09:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1738606165; 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=/t90EE2AtnPpm/aiSi11icMQ4dowWahaLElr2EfPoxE=; b=SFDTISFJyn/iSKkQHVjDeT3IgYEoZL/sG8jwx3OIxvHxuGFFKX/jXCAGFRJ8KfWdWiPU4t qS2QyMEqk1sNdJOhecuQKn8pgwRj8j0jXGTHH7QFnRwPigLqY8+bcWjY/YvgcekwPWKPV0 MRZOq2gHbAPHYBXbIzyN2iKurrZC5yOwSOX0Fhc66WOWorFqOpexH1kXrEAiNJ2xvuZsSn PxkNEe/GdA1sRdwXZiP76VsB60ZrD/LnSSZLHnKWCt7x/1Q+up3CFEbfihZl+OHfW2SeHq +K7dzf3U7eZggsVjkJAlOf+LJ6zS1Nr1FJvk6eW/PyobjNx9QyCYos4EG3sxOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1738606165; 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=/t90EE2AtnPpm/aiSi11icMQ4dowWahaLElr2EfPoxE=; b=AZYDjs808FkcvmQ2q9Orjsvk3oziQRw5GTZL1I9RBpHJ4TEyaDFOuTAaj/aXZMtJ6/iYkb VFa6QwinqI/Emn8Swz0DnjQXaLbEJBr4+wC8nAfQ8dUGpo3/v78qKk95kLYpMMrZFnLQt6 qXWRoIyXKqmyB/lsqgfV+qn7pdL5sENVokOz2WpqnHPrswLBLMGARSVELatE4uNgT2SuJY 0gwbUL84BMirIM/Tr6ozBSru0Xla0co8/9arfM7Im+Z9gB+VLCnw9DV7bLF3uRrpuMX2Ix djk4qqOeALlHo+TMnlzVal93qRcISPScz5Dk6fUcSTUM3MA7oLYk9CXVp/B4UQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1738606165; a=rsa-sha256; cv=none; b=EmGOt/NsNcOMrq8jxeZ2zq9snT3zfuvGNm3RNh/Fxrf2dKHpwVeMuj7dMK/hrpowCheIg9 4jcRYA8/Zwjce7lfWhk8XAetg/0JmZrlHXeGZE1O4Eazs7ac35S96Td/sL5GS4YiOFRxcN PhSwTZJCUdPk3TQoB0AZvQ2b9zbIxwXMXCvbU2Xhe+5VQlDn5UkEqXbCUVxWT+SU2+5f38 mQXANk8Y/YDklUnQXel1UsXaFnnmvuRWti/4BInUTm9HspMzigh5D4Hsn5lxB7btVXeBVk bZTH+MuSXmxzEGTJchx0expcx8u6CJGl+VIFLhsSuGCMhw0EL6GpryMMC8iO8g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4Ymvdx3ymlznFQ; Mon, 03 Feb 2025 18:09:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 513I9Ppu085832; Mon, 3 Feb 2025 18:09:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 513I9PV4085829; Mon, 3 Feb 2025 18:09:25 GMT (envelope-from git) Date: Mon, 3 Feb 2025 18:09:25 GMT Message-Id: <202502031809.513I9PV4085829@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Gleb Smirnoff Subject: git: bf3338e74b44 - main - netstat: cleanup includes in mroute6.c List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: glebius X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: bf3338e74b4432c17c992f46478c69ad020c5307 Auto-Submitted: auto-generated The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=bf3338e74b4432c17c992f46478c69ad020c5307 commit bf3338e74b4432c17c992f46478c69ad020c5307 Author: Gleb Smirnoff AuthorDate: 2025-02-03 07:59:35 +0000 Commit: Gleb Smirnoff CommitDate: 2025-02-03 17:48:41 +0000 netstat: cleanup includes in mroute6.c The file obtains some kernel structures in a dirty way and needs forward declaration of struct sockopt for that. Make it explicit instead of getting it via headers that were not designed for that. --- usr.bin/netstat/mroute6.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/usr.bin/netstat/mroute6.c b/usr.bin/netstat/mroute6.c index 2a98f26f8b27..0bb44b8292e7 100644 --- a/usr.bin/netstat/mroute6.c +++ b/usr.bin/netstat/mroute6.c @@ -70,9 +70,7 @@ #include #include #include -#include #include -#include #include #include @@ -88,6 +86,7 @@ #include #define KERNEL 1 +struct sockopt; #include #undef KERNEL