From nobody Wed Mar 30 13:01:25 2022 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 EA0911A41AB0; Wed, 30 Mar 2022 13:01:27 +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 4KT6521Dynz4Z9T; Wed, 30 Mar 2022 13:01:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648645287; 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=9NSFYr1Ky7DLuyyiVpKbyiAtEopW2ATM3z57QELuBU4=; b=x7CkPFV9HztAjS2ScWs+UOxANNlUYjYrdrpc8dMw4WulFDPVHC8d5PvuV9eLTSXb3uxeof /Stc2tQIijbZ2z6y9+kmjDzQj5itavqPVqyxuXgg69BU0SXkZ03sycIGKQqNM4HN9pNq80 fFPsB0RJQc8nE7jlE0kgECfEMc7tOaNw34KdqnQmCtbiPm9NtVqnQW8kyZhj6HopIchmWM JqSvdYoMxZH9l0/ZQqq9ixmK5O/oqyRC9rszrcEoHy3gZVmGq0EtJiDLE4I+XhUJ2tHnlF jRs69RkTwObzWnQCDFv/JAId4Df2XZ1vsAkZA2c+pzGkEgjb3iZECgP4mNJNdQ== 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 D82AB13846; Wed, 30 Mar 2022 13:01:25 +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 22UD1P19098643; Wed, 30 Mar 2022 13:01:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 22UD1P9C098642; Wed, 30 Mar 2022 13:01:25 GMT (envelope-from git) Date: Wed, 30 Mar 2022 13:01:25 GMT Message-Id: <202203301301.22UD1P9C098642@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mateusz Piotrowski <0mp@FreeBSD.org> Subject: git: 0625c313913b - main - ifconfig.8: Clean up documentation of -a, -d, and -u 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: 0mp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0625c313913b59f17aba11f77ef30032f68ed089 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648645287; 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=9NSFYr1Ky7DLuyyiVpKbyiAtEopW2ATM3z57QELuBU4=; b=E8fWQL+8XNx9tIwgISn1+Hrnezs/0WCpDInNqY65XQn3teWH3izSYflRXPZ9IKbcPYPHyy JgKLfFGjIvXIhMBcAO6Wk8bhpxc5qsCkUVxOKLddbcMQkkSWD6uCU6XkAMvtaQMqvZ47uV S9FHTpmvG7Iozi/uwHMKeM2LSQDgOQIvsoNImNHrbFD0vi7IM5nQmYOvCqvydK2xCuN6H7 EWnI1DUJBeCPczslOfiAC7sz0wJsHw/Er2oK2HO2YHBL7pB+bWBJP/FibQuwMewmmTLCtU xDHOgaB9l+4wAi1F0UgXwE8v83ge420jd5WLNP3vXTS9my+71aaKBWi71HCjMQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1648645287; a=rsa-sha256; cv=none; b=YGH4j0RqFgA/5U+/WartA5OYCI8EVJtimBZPPHWdIzVWAhCeRksspRSQBl+4uxB+WKoO3n lH2wvgCHdcyqw4qTIrzwBtI+DutduQojrSh2lvHAfBlgAUrtwWOTqWbLgmDqHrwuT5iRAN pvBLi41TF59JTA1iOpHc1PmkmH8pSyFak6tlLPG8a7WjX7C6IEj4zD6Jxv9JG51MwJtEuq dvPzJxranPNOcFyIcP8a6ZM1nxCzgOp2BTrZHYOWFhGOXd4ERlwiyFXi/pjefz9CzjB0oE ggDo8chQBruDBs9p6Y8I9CEuYQXSPjn6Nlis8kA4J2H9/1LTts5gx1PbMmTkjA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by 0mp (doc, ports committer): URL: https://cgit.FreeBSD.org/src/commit/?id=0625c313913b59f17aba11f77ef30032f68ed089 commit 0625c313913b59f17aba11f77ef30032f68ed089 Author: Mateusz Piotrowski <0mp@FreeBSD.org> AuthorDate: 2022-03-30 10:54:20 +0000 Commit: Mateusz Piotrowski <0mp@FreeBSD.org> CommitDate: 2022-03-30 12:58:34 +0000 ifconfig.8: Clean up documentation of -a, -d, and -u MFC after: 2 weeks --- sbin/ifconfig/ifconfig.8 | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/sbin/ifconfig/ifconfig.8 b/sbin/ifconfig/ifconfig.8 index 07fad2190aba..e4f08185b7d3 100644 --- a/sbin/ifconfig/ifconfig.8 +++ b/sbin/ifconfig/ifconfig.8 @@ -82,6 +82,16 @@ or other operating parameters. .Pp The following options are available: .Bl -tag -width indent +.It Fl a +Display information about all interfaces in the system. +.Pp +The +.Fl a +flag may be used instead of the +.Ar interface +argument. +.It Fl d +Display only the interfaces that are down. .It Fl f Xo .Ar type Ns Cm \&: Ns Ar format Ns .Op Cm \&, Ns Ar type Ns Cm \&: Ns Ar format Ar ... @@ -178,6 +188,8 @@ Display address lifetime for IPv6 addresses as time offset string. .It Fl m Display the capability list and all of the supported media for the specified interface. +.It Fl u +Display only the interfaces that are up. .It Ar address For the DARPA-Internet family, the address is either a host name present in the host name data @@ -289,17 +301,6 @@ If a protocol family is specified, .Nm will report only the details specific to that protocol family. .Pp -Optionally, the -.Fl a -flag may be used instead of an interface name. -This flag instructs -.Nm -to display information about all interfaces in the system. -The -.Fl d -flag limits this to interfaces that are down, -.Fl u -limits this to interfaces that are up, .Fl g limits this to members of the specified group of interfaces, and .Fl G