better documentation of TOS options

This commit is contained in:
Stephane Bortzmeyer 2001-03-17 20:49:24 +00:00
parent 44f05820ea
commit 711876d25d
2 changed files with 11 additions and 2 deletions

View File

@ -96,11 +96,17 @@ layer priority depends upon the network protocol and link protocol
in use. For more details see in use. For more details see
.B SO_PRIORITY .B SO_PRIORITY
in in
.BR socket (7). .BR socket(7).
.IP -P\ n .IP -P\ n
Set the IP type of service octet in the transmitted packets to the Set the IP type of service octet in the transmitted packets to the
least significant eight bits of the integer least significant eight bits of the integer
.IR n . .IR n .
See
.BR ip(7)
or
.BR ip(4)
(depending on your Unix). /usr/include/netinet/ip.h may contain
interesting constants for setting Type Of Service.
.SH EXAMPLES .SH EXAMPLES
.IP echoping\ \-v\ foobar.example.com .IP echoping\ \-v\ foobar.example.com
Tests the remote machine with TCP echo (one test). Tests the remote machine with TCP echo (one test).
@ -170,7 +176,7 @@ You may need to be superuser to set some
.B -p .B -p
or or
.B -P .B -P
values. values (precedence on Linux, for instance).
.SH BUGS .SH BUGS

View File

@ -9,5 +9,8 @@ echo "On some systems, you may NEED to be root."
./echoping -P 0xa0 central.internatif.org ./echoping -P 0xa0 central.internatif.org
# IPTOS_THROUGHPUT
./echoping -P 0x08 central.internatif.org