From nobody Sat Feb 18 17:08:38 2023 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 4PJwBG2Rcyz3slyt; Sat, 18 Feb 2023 17:08:38 +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 4PJwBG1tdGz47BC; Sat, 18 Feb 2023 17:08:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676740118; 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=lmNwpuf7apST5ri6P5DsIj6FvQ+H0bH78gXbmgZj9og=; b=dj2B6iSet+WR780efnc48PjBQVzypk+ivC2X7oRgfXQJUFr70OH6l6RoPOrWo7vzYKghfC egQQb5jd03V1eEldOrEYujP4KOv+1ofGznL7b/s5BxpzOoNtTyvdb4zTsZWe+dnpr0jlVr HfKBW3T4VYXcOOcr9dq3rmTo6ZZojnb4voTpV3yZJt8l2AEXA6XKHrmqmXq9rLJBFBYfBM v4ZwecZGWjJHCtdCSOrxa/17uNcDPwzh8hElc/85IfEwd29z4At3I3pxSLKFHZJM1QNMtb 0BH6tXwGHw4XPdoTwCxDo3cjNXMYJ2C52dlozFYGYw77ShPO+hEAEGSpl2VoMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676740118; 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=lmNwpuf7apST5ri6P5DsIj6FvQ+H0bH78gXbmgZj9og=; b=N+5AXiOey4vtwVXU9qHByIlr41o0xH6h+rrBZMPGCm4DBZLCFFzlEJpXtPTufMUQZvkuT/ Ev6gEoqjtcI5icTLzhpIojFOAyeOSBo3GthOs2jx3J1VlVAFSP7BbHRzwAoeiNH3vjJ6Qr e6k2hh+TcZ2/4T18kFsFr/oEfOIqGb05r2gRJnM2jVI5ZUY7vd5J3NQrshBkKhcx54mDvO QPKgm2YuTUKHn/7t5UxjppatZac5w2mqcU9v/bSyT/TCPuDpa9zzJ/WHSoxaNk7ZrFe1fj e7S7942dz6McrZZ86uXTGK0ZiXacfcVdt+RAZKfX6NPEuF6+5AeAX/JJjZ6Bgw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676740118; a=rsa-sha256; cv=none; b=B3GV3OTQLqyQQ92fzJE0pRRG25+hSQlK/mWIvsXPhmI5lKpBeNAfJhmhD3cxqy84RCbyDy 5DqzTpMHI/F83IQw4aBAJBM7rwvLGhQTY+pbAvAZhunJmIFel+hXQgwjZ61s4Yk3ZnWCrY UujBCCUQeOraC3C+bPLnYBU+3fyuYxsmuOYkTS4ZzSjRUz3QLH2LxIkokGoHAZjy701GsT lf7nyVNVBVuitVWMLnQlS1CvaWSHsEdQjkqJOiPTroM9We5KRMlg8ReXoN8mQhWDbraEog a+fWjX+5YDLITMqlpikTJ4VrTZwNqtDwSUt5iFZaoqwKNcTrB6GJm+f9lYWVOg== 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 4PJwBG0vwnzWD1; Sat, 18 Feb 2023 17:08:38 +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 31IH8cab012815; Sat, 18 Feb 2023 17:08:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31IH8c07012814; Sat, 18 Feb 2023 17:08:38 GMT (envelope-from git) Date: Sat, 18 Feb 2023 17:08:38 GMT Message-Id: <202302181708.31IH8c07012814@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: =?utf-8?Q?Fernando=20Apestegu=C3=ADa?= Subject: git: 91706f0d6d97 - main - netstat.1: Clarify -i and -I priorities 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: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fernape X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 91706f0d6d972c3ff359565e144828dad2a790af Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by fernape: URL: https://cgit.FreeBSD.org/src/commit/?id=91706f0d6d972c3ff359565e144828dad2a790af commit 91706f0d6d972c3ff359565e144828dad2a790af Author: Fernando ApesteguĂ­a AuthorDate: 2023-02-18 17:00:29 +0000 Commit: Fernando ApesteguĂ­a CommitDate: 2023-02-18 17:01:34 +0000 netstat.1: Clarify -i and -I priorities netstat(1) allows to specify both -i (all interfaces) and -I . However, when both are specified, -I always overrides -i. Add a comment where appropriate the same way we do in rm(1) for -f and -i. PR: 202708 Reported by: demon@ Approved by: manpages (pauamma@) Differential Revision: https://reviews.freebsd.org/D38654 --- usr.bin/netstat/netstat.1 | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/usr.bin/netstat/netstat.1 b/usr.bin/netstat/netstat.1 index 819e7c94df74..c57e00d11648 100644 --- a/usr.bin/netstat/netstat.1 +++ b/usr.bin/netstat/netstat.1 @@ -28,7 +28,7 @@ .\" @(#)netstat.1 8.8 (Berkeley) 4/18/94 .\" $FreeBSD$ .\" -.Dd May 27, 2022 +.Dd February 18, 2023 .Dt NETSTAT 1 .Os .Sh NAME @@ -284,6 +284,14 @@ The network addresses of the interface and the maximum transmission unit .Pq Dq mtu are also displayed. +If both +.Fl i +and +.Fl I +are specified, +.Fl I +overrides any instances of +.Fl i . .Bl -tag -width indent .It Fl 4 Show IPv4 only. @@ -432,6 +440,14 @@ See .Ek .Xc Display per-interface statistics for each network protocol. +If both +.Fl i +and +.Fl I +are specified, +.Fl I +overrides any instances of +.Fl i . .Bl -tag -width indent .It Fl 4 Show IPv4 only