From nobody Wed Jun 29 08:19:31 2022 X-Original-To: dev-commits-src-branches@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 DB5C38606C5; Wed, 29 Jun 2022 08:19:36 +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 4LXvWp2QhJz4kQw; Wed, 29 Jun 2022 08:19:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656490775; 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=ICyPIA/adojLUYGE6YKTIk1AThNNTq0cbSGjaE7I2DY=; b=foXr5LbkBVPiYcTMPSqdxqGS3QXQF+t0jJchnop3ct0R6MJo/h8w/0z/7UfmAtMkdR73tg pdpRCHuMsIWpfEiXHjoOeYXgX+hgbsNijIZdcTiwn02T3nSlkqfZ/Zns5MDqP0b64/ugeK 0GjSci1/oqKMbIFZHOaOM7N4C/FP4LVpxQTWOR2JyhYcCiv2odJ6ASQYmS6pMIi6aZ/kSx dg0Xg98S7YR1Ybg/qNZL7ZD3eOiioB4VuNQK8XqNnoNZgdQtMLlYyVnwHzAUvK0wpLy68B UDvl/9pkt+2v2+L7WbyXHkUMKg7qmSU19JoOW4isRmYrunuurpgNptcvwSO7TA== 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 CC4206181; Wed, 29 Jun 2022 08:19:31 +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 25T8JVGi005402; Wed, 29 Jun 2022 08:19:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 25T8JV4w005401; Wed, 29 Jun 2022 08:19:31 GMT (envelope-from git) Date: Wed, 29 Jun 2022 08:19:31 GMT Message-Id: <202206290819.25T8JV4w005401@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mateusz Piotrowski <0mp@FreeBSD.org> Subject: git: a64829040fc0 - stable/13 - ifconfig.8: Simplify examples by using canonical parameters List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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/stable/13 X-Git-Reftype: branch X-Git-Commit: a64829040fc0ccce5bc58f43f9df2bc84c39abcf Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656490775; 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=ICyPIA/adojLUYGE6YKTIk1AThNNTq0cbSGjaE7I2DY=; b=chKHSKbG0wd2kHEgswROb+Q7xlaFeYuMQQIg9gp4rza8wjof9Hi7C5Z9HFmpI+APQc8OPD 67RzXZwpeEekg0HJEzK6Hbo7Oc9EC/P/g0ZmcCCeZVB5FHpf/zgAHJ+Ei58etitzwbEQII AcdufbxdW0+pbkbSkICYHBxGElz9ClvqB13qIX8EqQDExMYAdLNi7A54P3QkGOTiOTXOIZ xg9WYOExo4ZReLNvlodbHPayjFuznhrgbs7e3YOYSF6kE2tue07/OyW4HgvZjaDdBZsDvu d52fYQAuCaQv3l+9nuxWk6x35dNLyEYOxRnfl04l+pna1eW2/MgATeTbonXH0w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1656490775; a=rsa-sha256; cv=none; b=RQzOZdPk8Y9EB18eLPOlylNSXtBsHfO8OkJ+8Sf7R5DMrKh39PMh1DgnhH7fCtwqj/KpGV IgXxFoE3i6f58w8OASDwqLkYmjJUX12iXR8UUo6G2Rcv8EtPyagamlWZTRalm+I4cOhrj7 ZeYL8E2MZ+9gxQOKFoCeN3s/rHhfHS1S4gsWg3gjQmUZgoYLb91WfM4svaZb1MXOjC8hWd YuOdBQuOGr4nAfqG1zG5U2ROMEAGth+bMup0SfFVwN7908wv/YYPMiuIopmd2jW4kjgut9 14w4YEsGVlbNGD0CHM61oLqBGKEsn6LyRxaX1CcDhtTfKQufANKf6UAbMWLZRg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by 0mp (doc, ports committer): URL: https://cgit.FreeBSD.org/src/commit/?id=a64829040fc0ccce5bc58f43f9df2bc84c39abcf commit a64829040fc0ccce5bc58f43f9df2bc84c39abcf Author: Mateusz Piotrowski <0mp@FreeBSD.org> AuthorDate: 2022-03-31 09:54:06 +0000 Commit: Mateusz Piotrowski <0mp@FreeBSD.org> CommitDate: 2022-06-29 08:15:12 +0000 ifconfig.8: Simplify examples by using canonical parameters Also, use Bd instead of Dl for multi line examples. MFC after: 2 weeks (cherry picked from commit 19ac0bc5c139cdd00b71e1774ef327fa79197c2a) --- sbin/ifconfig/ifconfig.8 | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/sbin/ifconfig/ifconfig.8 b/sbin/ifconfig/ifconfig.8 index 2a76b9bc03b2..313abfd0ad7e 100644 --- a/sbin/ifconfig/ifconfig.8 +++ b/sbin/ifconfig/ifconfig.8 @@ -3091,12 +3091,8 @@ Add the IPv4 address with the CIDR network prefix .Li /28 , to the interface -.Li em0 , -using -.Cm add -as a synonym for the canonical form of the option -.Cm alias : -.Dl # ifconfig em0 inet 192.0.2.45/28 add +.Li em0 : +.Dl # ifconfig em0 inet 192.0.2.45/28 alias .Pp Remove the IPv4 address .Li 192.0.2.45 @@ -3117,17 +3113,15 @@ Note that lower case hexadecimal IPv6 addresses are acceptable. Remove the IPv6 address added in the above example, using the .Li / -character as shorthand for the network prefix, -and using -.Cm delete -as a synonym for the canonical form of the option -.Fl alias : -.Dl # ifconfig em0 inet6 2001:db8:bdbd::123/48 delete +character as shorthand for the network prefix: +.Dl # ifconfig em0 inet6 2001:db8:bdbd::123/48 -alias .Pp Configure a single CARP redundant address on igb0, and then switch it to be master: -.Dl # ifconfig igb0 vhid 1 10.0.0.1/24 pass foobar up -.Dl # ifconfig igb0 vhid 1 state master +.Bd -literal -offset indent -compact +# ifconfig igb0 vhid 1 10.0.0.1/24 pass foobar up +# ifconfig igb0 vhid 1 state master +.Ed .Pp Configure the interface .Li xl0 ,