From: hannes Date: Sun, 23 Nov 2003 21:01:50 +0000 (+0000) Subject: From Gerald Combs : X-Git-Tag: tcpdump-3.9.1~548 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/8f7b7346cd393fab5ab694184f17b2b75d44ca6d?ds=inline From Gerald Combs : The change adds left- and right-shift (<< and >>) to the list of binary operators on the tcpdump man page. E.g. "tcp[12] >> 4 > 5" will test for TCP options. The operators are listed in the '93 Usenix paper, and appear to have been supported in libpcap since the 0.0 release. --- diff --git a/tcpdump.1 b/tcpdump.1 index 2fab1e76..f9729f04 100644 --- a/tcpdump.1 +++ b/tcpdump.1 @@ -1,4 +1,4 @@ -.\" @(#) $Header: /tcpdump/master/tcpdump/Attic/tcpdump.1,v 1.152 2003-11-19 01:59:19 guy Exp $ (LBL) +.\" @(#) $Header: /tcpdump/master/tcpdump/Attic/tcpdump.1,v 1.153 2003-11-23 21:01:50 hannes Exp $ (LBL) .\" .\" $NetBSD: tcpdump.8,v 1.9 2003/03/31 00:18:17 perry Exp $ .\" @@ -1013,10 +1013,11 @@ True if the packet is an ATM packet, for SunATM on Solaris, and is on a meta signaling circuit and is a Q.2931 Setup, Call Proceeding, Connect, Release, or Release Done message. .IP "\fIexpr relop expr\fR" -True if the relation holds, where \fIrelop\fR is one of >, <, >=, <=, =, !=, -and \fIexpr\fR is an arithmetic expression composed of integer constants -(expressed in standard C syntax), the normal binary operators -[+, -, *, /, &, |], a length operator, and special packet data accessors. +True if the relation holds, where \fIrelop\fR is one of >, <, >=, <=, =, +!=, and \fIexpr\fR is an arithmetic expression composed of integer +constants (expressed in standard C syntax), the normal binary operators +[+, -, *, /, &, |, <<, >>], a length operator, and special packet data +accessors. To access data inside the packet, use the following syntax: .in +.5i