ref: 5186cb3b998d9428d724710f0e9300a58884c261
parent: c8507f428fc7f99da40fc59024742291e42136a7
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Mar 13 13:38:06 EDT 2022
ip(3): document the trans argument for add/try.
--- a/sys/man/3/ip
+++ b/sys/man/3/ip
@@ -145,10 +145,10 @@
.B "unbind
Disassociate the physical device from an IP interface.
.TP
-.BI add\ "local mask remote mtu " proxy
+.BI add\ "local mask remote mtu " proxy|trans
.PD 0
.TP
-.BI try\ "local mask remote mtu " proxy
+.BI try\ "local mask remote mtu " proxy|trans
.PD
Add a local IP address to the interface.
.I Try
@@ -160,8 +160,9 @@
.IR mask ,
.IR remote ,
.IR mtu ,
+.IR proxy ,
and
-.B proxy
+.R trans
arguments are all optional.
The default
.I mask
@@ -179,6 +180,9 @@
The
.I mtu
is the size in bytes of the largest packet that this interface can send.
+Specifying a
+.I mtu
+of 0 will use the default.
.IR Proxy ,
if specified, means that this machine should answer
ARP requests for the remote address.
@@ -185,6 +189,9 @@
.IR Ppp (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.
Adding the special null-address
.B "0.0.0.0"
or