summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tcpdrop/tcpdrop.8
diff options
context:
space:
mode:
authorpb <pb@openbsd.org>2004-04-27 21:21:56 +0000
committerpb <pb@openbsd.org>2004-04-27 21:21:56 +0000
commit48132b450bd348c740f6734ccba106def14d0add (patch)
tree9c02decf1508e22e6cccb5c7f6606ca5d51f1b72 /usr.sbin/tcpdrop/tcpdrop.8
parentreworking of man page and sync/update usage(); (diff)
downloadwireguard-openbsd-48132b450bd348c740f6734ccba106def14d0add.tar.xz
wireguard-openbsd-48132b450bd348c740f6734ccba106def14d0add.zip
add an example w/ fstat(1)
Diffstat (limited to 'usr.sbin/tcpdrop/tcpdrop.8')
-rw-r--r--usr.sbin/tcpdrop/tcpdrop.820
1 files changed, 19 insertions, 1 deletions
diff --git a/usr.sbin/tcpdrop/tcpdrop.8 b/usr.sbin/tcpdrop/tcpdrop.8
index f85fdd59361..c82147df45c 100644
--- a/usr.sbin/tcpdrop/tcpdrop.8
+++ b/usr.sbin/tcpdrop/tcpdrop.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: tcpdrop.8,v 1.1 2004/04/27 18:29:26 markus Exp $
+.\" $OpenBSD: tcpdrop.8,v 1.2 2004/04/27 21:21:56 pb Exp $
.\"
.\" Copyright (c) 2004 Markus Friedl <markus@openbsd.org>
.\"
@@ -37,5 +37,23 @@ and the foreign address
.Ar faddr ,
port
.Ar faddr .
+.Sh EXAMPLE
+If one connection to, e.g.
+.Xr httpd 8
+is congestion a link one can easily drop the TCP session in charge:
+.Bd -literal
+# fstat | egrep 'httpd.*internet'
+www httpd 21307 3* internet stream tcp \\
+ 0xd1007ca8 192.168.5.41:80 <-- 192.168.5.1:26747
+.Ed
+.Pp
+This gives all information one needs to call
+.Xr tcpdrop 8 :
+.Bd -literal
+# tcpdrop 192.168.5.41 80 192.168.5.1 26747
+.Ed
+.Pp
+will end this TCP connection.
.Sh SEE ALSO
+.Xr fstat 1 ,
.Xr netstat 1