summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorkn <kn@cvs.openbsd.org>2020-07-22 02:43:07 +0000
committerkn <kn@cvs.openbsd.org>2020-07-22 02:43:07 +0000
commit4994877d1578ea98a92080c0a7a334c0d8aae603 (patch)
treeacae4a2b5251af81d65638f5fb14605f042421a5 /share
parente7539b190c92e728ca85bde26d2ba6e8599ec22c (diff)
Change tpmr(4) from ifconfig [-]trunkport to add|del synopsis
Unlike aggr(4) and trunk(4) for link aggregation, tpmr(4) bridges links similar to bridge(4) and switch(4), yet its ioctl(2) interface is that of an an aggregating interface. Change SIOCSTRUNKPORT and SIOCSTRUNKDELPORT to SIOCBRDGADD and SIOCBRDGDEL respectively and speak about members rather than ports in the manual to make ifconfig(8) accept "add" and "del" commands as expected. Status ioctls will follow such that "ifconfig tpmr" gets fixed accordingly. Discussed with dlg after mentioning the lack of aggr(4) and tpmr(4) documentation in ifconfig(8) which will follow as well after code cleanup. Feedback OK dlg
Diffstat (limited to 'share')
-rw-r--r--share/man/man4/tpmr.420
1 files changed, 10 insertions, 10 deletions
diff --git a/share/man/man4/tpmr.4 b/share/man/man4/tpmr.4
index 0f7d41a4285..d30027d2b12 100644
--- a/share/man/man4/tpmr.4
+++ b/share/man/man4/tpmr.4
@@ -1,4 +1,4 @@
-.\" $OpenBSD: tpmr.4,v 1.4 2019/08/20 08:21:03 dlg Exp $
+.\" $OpenBSD: tpmr.4,v 1.5 2020/07/22 02:43:06 kn Exp $
.\"
.\" Copyright (c) 2019 David Gwynne <dlg@openbsd.org>
.\"
@@ -14,7 +14,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: August 20 2019 $
+.Dd $Mdocdate: July 22 2020 $
.Dt TPMR 4
.Os
.Sh NAME
@@ -30,8 +30,8 @@ driver implements an 802.1Q (originally 802.1aj) Two-Port MAC Relay
A TPMR is a simplified Ethernet bridge that provides a subset of
the functionality as found in
.Xr bridge 4 .
-A TPMR has exactly two ports, and unconditionally relays Ethernet
-packets between the two ports.
+A TPMR has exactly two members, and unconditionally relays Ethernet
+packets between the them.
.Pp
.Nm
interfaces can be created at runtime using the
@@ -51,12 +51,12 @@ and
.Xr netstart 8
using the following options:
.Bl -tag -width Ds
-.It Cm trunkport Ar child-iface
+.It Cm add Ar child-iface
Add
.Ar child-iface
-as a port.
-.It Cm -trunkport Ar child-iface
-Remove the port
+as a member.
+.It Cm del Ar child-iface
+Remove the member
.Ar child-iface .
.It Cm link0
Disable the filtering of Ethernet frames destined for the TPMR
@@ -102,7 +102,7 @@ is used to connect to the 1000baseSX switch, the following configuration
can be used:
.Bd -literal
# ifconfig tpmr0 create
-# ifconfig tpmr0 trunkport fxp0 trunkport em0
+# ifconfig tpmr0 add fxp0 add em0
# ifconfig fxp0 up
# ifconfig em0 up
# ifconfig tpmr0 up
@@ -154,7 +154,7 @@ Configure the etherip interface:
.Pp
Add the etherip interface and physical interface to the TPMR:
.Bd -literal -offset indent
-# ifconfig tpmr0 trunkport em1 trunkport etherip0 up
+# ifconfig tpmr0 add em1 add etherip0 up
.Ed
.Pp
An equivalent setup using MPLS pseudowires instead of IP as the