summaryrefslogtreecommitdiff
path: root/src/usr.bin/nc/nc.1
diff options
context:
space:
mode:
authorhaesbaert <>2011-09-17 14:10:05 +0000
committerhaesbaert <>2011-09-17 14:10:05 +0000
commit338a262ca79ae9a01c09ccaea32717c943d757bf (patch)
tree9bef3d73231dd68443d5a20e51b0c62a238e62e5 /src/usr.bin/nc/nc.1
parent1814786ce700b8ec3d2d804be90b9f18eec360a9 (diff)
downloadopenbsd-338a262ca79ae9a01c09ccaea32717c943d757bf.tar.gz
openbsd-338a262ca79ae9a01c09ccaea32717c943d757bf.tar.bz2
openbsd-338a262ca79ae9a01c09ccaea32717c943d757bf.zip
Standarize the ToS option across nc/ping/traceroute so that they'll
accept the same values as pf.conf. It accepts decimal, hexadecimal and the dscp/tos keywords. The ping option was ripped of in SMALL. ok mcbride@ sthen@
Diffstat (limited to 'src/usr.bin/nc/nc.1')
-rw-r--r--src/usr.bin/nc/nc.129
1 files changed, 18 insertions, 11 deletions
diff --git a/src/usr.bin/nc/nc.1 b/src/usr.bin/nc/nc.1
index f9bd5b153e..6a1538cb45 100644
--- a/src/usr.bin/nc/nc.1
+++ b/src/usr.bin/nc/nc.1
@@ -1,4 +1,4 @@
1.\" $OpenBSD: nc.1,v 1.57 2011/01/09 22:16:46 jeremy Exp $ 1.\" $OpenBSD: nc.1,v 1.58 2011/09/17 14:10:05 haesbaert Exp $
2.\" 2.\"
3.\" Copyright (c) 1996 David Sacerdote 3.\" Copyright (c) 1996 David Sacerdote
4.\" All rights reserved. 4.\" All rights reserved.
@@ -25,7 +25,7 @@
25.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27.\" 27.\"
28.Dd $Mdocdate: January 9 2011 $ 28.Dd $Mdocdate: September 17 2011 $
29.Dt NC 1 29.Dt NC 1
30.Os 30.Os
31.Sh NAME 31.Sh NAME
@@ -41,7 +41,7 @@
41.Op Fl P Ar proxy_username 41.Op Fl P Ar proxy_username
42.Op Fl p Ar source_port 42.Op Fl p Ar source_port
43.Op Fl s Ar source 43.Op Fl s Ar source
44.Op Fl T Ar ToS 44.Op Fl T Ar toskeyword
45.Op Fl V Ar rtable 45.Op Fl V Ar rtable
46.Op Fl w Ar timeout 46.Op Fl w Ar timeout
47.Op Fl X Ar proxy_protocol 47.Op Fl X Ar proxy_protocol
@@ -164,14 +164,21 @@ to create and use so that datagrams can be received.
164It is an error to use this option in conjunction with the 164It is an error to use this option in conjunction with the
165.Fl l 165.Fl l
166option. 166option.
167.It Fl T Ar ToS 167.It Fl T Ar toskeyword
168Specifies IP Type of Service (ToS) for the connection. 168Change IPv4 TOS value.
169Valid values are the tokens 169.Ar toskeyword
170.Dq lowdelay , 170may be one of
171.Dq throughput , 171.Ar critical ,
172.Dq reliability , 172.Ar inetcontrol ,
173or an 8-bit hexadecimal value preceded by 173.Ar lowdelay ,
174.Dq 0x . 174.Ar netcontrol ,
175.Ar throughput ,
176.Ar reliability ,
177or one of the DiffServ Code Points:
178.Ar ef ,
179.Ar af11 ... af43 ,
180.Ar cs0 ... cs7 ;
181or a number in either hex or decimal.
175.It Fl t 182.It Fl t
176Causes 183Causes
177.Nm 184.Nm