summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tcpdrop
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2007-03-28 17:04:03 +0000
committerderaadt <deraadt@openbsd.org>2007-03-28 17:04:03 +0000
commit4150247bef6b60a630b0f7c62bd7164735979d5e (patch)
tree3d60e903cd887ef5bcb8904e64b1d8ece321713b /usr.sbin/tcpdrop
parentSince /etc/crontab is not edited via crontab(1) there's no good (diff)
downloadwireguard-openbsd-4150247bef6b60a630b0f7c62bd7164735979d5e.tar.xz
wireguard-openbsd-4150247bef6b60a630b0f7c62bd7164735979d5e.zip
flesh out the addresses to make it clear what they are; requested by jmc
Diffstat (limited to 'usr.sbin/tcpdrop')
-rw-r--r--usr.sbin/tcpdrop/tcpdrop.822
-rw-r--r--usr.sbin/tcpdrop/tcpdrop.c8
2 files changed, 16 insertions, 14 deletions
diff --git a/usr.sbin/tcpdrop/tcpdrop.8 b/usr.sbin/tcpdrop/tcpdrop.8
index 63ccc627589..d907a356b43 100644
--- a/usr.sbin/tcpdrop/tcpdrop.8
+++ b/usr.sbin/tcpdrop/tcpdrop.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: tcpdrop.8,v 1.7 2007/03/25 17:20:27 deraadt Exp $
+.\" $OpenBSD: tcpdrop.8,v 1.8 2007/03/28 17:04:03 deraadt Exp $
.\"
.\" Copyright (c) 2004 Markus Friedl <markus@openbsd.org>
.\"
@@ -22,24 +22,24 @@
.Nd drop a TCP connection
.Sh SYNOPSIS
.Nm tcpdrop
-.Ar laddr
-.Ar lport
-.Ar faddr
-.Ar fport
+.Ar local-addr
+.Ar local-port
+.Ar remote-addr
+.Ar remote-port
.Nm tcpdrop
-.Ar laddr : Ns Ar lport
-.Ar faddr : Ns Ar fport
+.Ar local-addr : Ns Ar local-port
+.Ar remote-addr : Ns Ar remote-port
.Sh DESCRIPTION
The
.Nm
command drops the TCP connection specified by the local address
-.Ar laddr ,
+.Ar local-addr ,
port
-.Ar lport
+.Ar local-port
and the foreign address
-.Ar faddr ,
+.Ar remote-addr ,
port
-.Ar fport .
+.Ar remote-port .
Addresses and ports can be specified by name or numeric value.
.Sh EXAMPLES
If a connection to
diff --git a/usr.sbin/tcpdrop/tcpdrop.c b/usr.sbin/tcpdrop/tcpdrop.c
index 578b69ae94c..aa0fc807e95 100644
--- a/usr.sbin/tcpdrop/tcpdrop.c
+++ b/usr.sbin/tcpdrop/tcpdrop.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcpdrop.c,v 1.6 2007/03/25 17:20:27 deraadt Exp $ */
+/* $OpenBSD: tcpdrop.c,v 1.7 2007/03/28 17:04:03 deraadt Exp $ */
/*
* Copyright (c) 2004 Markus Friedl <markus@openbsd.org>
@@ -73,9 +73,11 @@ main(int argc, char **argv)
port2 = argv[4];
} else {
fail:
- fprintf(stderr, "usage: %s laddr lport faddr fport\n",
+ fprintf(stderr,
+ "usage: %s local-addr local-port remote-addr remote-port\n",
__progname);
- fprintf(stderr, " %s laddr:lport faddr:fport\n",
+ fprintf(stderr,
+ " %s local-addr:local-port remote-addr:remote-port\n",
__progname);
exit(1);
}