From 30dc9e31de293d613a88a45085166c1affa3da2e Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sun, 25 Mar 2007 17:20:28 +0000 Subject: support a 2 address format (addr:port addr:port) like fstat outputs. also enhance ipv6 support by unpacking the [addr]:port format. ok beck, itojun, various others --- usr.sbin/tcpdrop/tcpdrop.8 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'usr.sbin/tcpdrop/tcpdrop.8') diff --git a/usr.sbin/tcpdrop/tcpdrop.8 b/usr.sbin/tcpdrop/tcpdrop.8 index a2f659594b0..63ccc627589 100644 --- a/usr.sbin/tcpdrop/tcpdrop.8 +++ b/usr.sbin/tcpdrop/tcpdrop.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: tcpdrop.8,v 1.6 2006/01/03 14:52:17 jmc Exp $ +.\" $OpenBSD: tcpdrop.8,v 1.7 2007/03/25 17:20:27 deraadt Exp $ .\" .\" Copyright (c) 2004 Markus Friedl .\" @@ -26,6 +26,9 @@ .Ar lport .Ar faddr .Ar fport +.Nm tcpdrop +.Ar laddr : Ns Ar lport +.Ar faddr : Ns Ar fport .Sh DESCRIPTION The .Nm @@ -49,9 +52,11 @@ www httpd 21307 3* internet stream tcp \e 0xd1007ca8 192.168.5.41:80 \*(Lt-- 192.168.5.1:26747 .Ed .Pp -The following command will drop the connection: +Either of the following commands will drop the connection: .Bd -literal -offset indent # tcpdrop 192.168.5.41 80 192.168.5.1 26747 + +# tcpdrop 192.168.5.41:80 192.168.5.1:26747 .Ed .Sh SEE ALSO .Xr fstat 1 , -- cgit v1.2.3