summaryrefslogtreecommitdiff
path: root/sys/man/3
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2022-03-14 18:45:27 +0000
committercinap_lenrek <cinap_lenrek@felloff.net>2022-03-14 18:45:27 +0000
commitca313087c1715a0331a58c01ad104632d366f057 (patch)
treee334e4c4ea6d10bd911d5e88b000cd4bc48e41f9 /sys/man/3
parentd4e89fe76a24ab08aae50f0918cf3e65efbc779b (diff)
ip(3): use flags instead of tag for 8 column route add/remove
This avoids ipconfig having to explicitely specify the tag when we want to set route type, as the tag can be provided implicitely thru the "tag" command.
Diffstat (limited to 'sys/man/3')
-rw-r--r--sys/man/3/ip13
1 files changed, 8 insertions, 5 deletions
diff --git a/sys/man/3/ip b/sys/man/3/ip
index d502aeb54..c3836395f 100644
--- a/sys/man/3/ip
+++ b/sys/man/3/ip
@@ -191,7 +191,8 @@ does this to make remote machines appear
to be connected to the local Ethernet.
The
.I trans
-argument enables source address translation on interface.
+argument enables source address translation
+for packets routed to the interface.
Adding the special null-address
.B "0.0.0.0"
or
@@ -420,7 +421,7 @@ multicast route
point-to-point route
.TP
.B t
-network address translation on source
+network source address translation
.PD
.PP
The tag is an arbitrary, up to 4 character, string. It is normally used to
@@ -450,14 +451,16 @@ with all subsequent routes added via this file descriptor.
.TP
.BI add\ "target mask nexthop interface source smask"
.TP
-.BI add\ "target mask nexthop tag interface source smask"
+.BI add\ "target mask nexthop flags interface source smask"
.TP
.BI add\ "target mask nexthop flags tag interface source smask"
Add the route to the table. If one already exists with the
same target and mask, replace it. The
.I interface
can be given as either the interface number or a local
-IP address on the desired interface.
+IP address on the desired interface or as a
+.B "-"
+when unspecified.
.TP
.BI remove\ "target mask"
.TP
@@ -469,7 +472,7 @@ IP address on the desired interface.
.TP
.BI remove\ "target mask nexthop interface source smask"
.TP
-.BI remove\ "target mask nexthop tag interface source smask"
+.BI remove\ "target mask nexthop flags interface source smask"
.TP
.BI remove\ "target mask nexthop flags tag interface source smask"
Remove the matching route.