summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tcpdump/tcpdump.8
diff options
context:
space:
mode:
authorlteo <lteo@openbsd.org>2013-07-10 03:08:58 +0000
committerlteo <lteo@openbsd.org>2013-07-10 03:08:58 +0000
commit9b75ec8e4f65f3ec0ba8892bc2acee737b991a7f (patch)
treef17ab58716d11dc256f78a9a24f5b5b5fe3cb5b8 /usr.sbin/tcpdump/tcpdump.8
parentstruct bintime is only used inside the kernel, while struct clockinfo is (diff)
downloadwireguard-openbsd-9b75ec8e4f65f3ec0ba8892bc2acee737b991a7f.tar.xz
wireguard-openbsd-9b75ec8e4f65f3ec0ba8892bc2acee737b991a7f.zip
In the EXAMPLES section, it is not very obvious that "localnet" is not a
literal argument name due to lack of formatting, so replace it with an example network to make it clearer (discussed with and suggested by jmc@). While here, fix some style nits in a sentence to make it consistent with the other examples. ok jmc
Diffstat (limited to 'usr.sbin/tcpdump/tcpdump.8')
-rw-r--r--usr.sbin/tcpdump/tcpdump.819
1 files changed, 10 insertions, 9 deletions
diff --git a/usr.sbin/tcpdump/tcpdump.8 b/usr.sbin/tcpdump/tcpdump.8
index ee40633afa9..43e9c22be62 100644
--- a/usr.sbin/tcpdump/tcpdump.8
+++ b/usr.sbin/tcpdump/tcpdump.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: tcpdump.8,v 1.79 2012/09/26 16:19:45 jmc Exp $
+.\" $OpenBSD: tcpdump.8,v 1.80 2013/07/10 03:08:58 lteo Exp $
.\"
.\" Copyright (c) 1987, 1988, 1989, 1990, 1991, 1992, 1994, 1995, 1996
.\" The Regents of the University of California. All rights reserved.
@@ -19,7 +19,7 @@
.\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
.\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
.\"
-.Dd $Mdocdate: September 26 2012 $
+.Dd $Mdocdate: July 10 2013 $
.Dt TCPDUMP 8
.Os
.Sh NAME
@@ -1012,20 +1012,21 @@ To print all FTP traffic through internet gateway snup:
.Pp
.Dl # tcpdump 'gateway snup and (port ftp or ftp-data)'
.Pp
-To print traffic neither sourced from nor destined for local hosts
-(if you gateway to one other net, this stuff should never make it onto
-your local net):
+To print traffic neither sourced from nor destined for local network
+192.168.7.0/24 (if you gateway to one other net, this stuff should
+never make it onto your local network):
.Pp
-.Dl # tcpdump ip and not net localnet
+.Dl # tcpdump ip and not net 192.168.7.0/24
.Pp
To print the start and end packets
.Pq the SYN and FIN packets
-of each TCP connection that involves a non-local host:
+of each TCP connection that involves a host that is not in local
+network 192.168.7.0/24:
.Bd -literal -offset indent
-# tcpdump 'tcp[13] & 3 != 0 and not src and dst net localnet'
+# tcpdump 'tcp[13] & 3 != 0 and not src and dst net 192.168.7.0/24'
.Ed
.Pp
-To print only the SYN packets of http connections
+To print only the SYN packets of HTTP connections:
.Pp
.Dl # tcpdump 'tcp[tcpflags] = tcp-syn and port http'
.Pp