"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pcap-filter.manmisc.in" between
libpcap-1.10.0.tar.gz and libpcap-1.10.1.tar.gz

About: libpcap is a packet filter library used by tools like tcpdump.

pcap-filter.manmisc.in  (libpcap-1.10.0):pcap-filter.manmisc.in  (libpcap-1.10.1)
skipping to change at line 21 skipping to change at line 21
.\" features or use of this software display the following acknowledgement: .\" features or use of this software display the following acknowledgement:
.\" ``This product includes software developed by the University of California, .\" ``This product includes software developed by the University of California,
.\" Lawrence Berkeley Laboratory and its contributors.'' Neither the name of .\" Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
.\" the University nor the names of its contributors may be used to endorse .\" the University nor the names of its contributors may be used to endorse
.\" or promote products derived from this software without specific prior .\" or promote products derived from this software without specific prior
.\" written permission. .\" written permission.
.\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED .\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
.\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF .\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
.\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. .\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
.\" .\"
.TH PCAP-FILTER @MAN_MISC_INFO@ "2 September 2020" .TH PCAP-FILTER @MAN_MISC_INFO@ "6 February 2021"
.SH NAME .SH NAME
pcap-filter \- packet filter syntax pcap-filter \- packet filter syntax
.br .br
.ad .ad
.SH DESCRIPTION .SH DESCRIPTION
.LP .LP
.BR pcap_compile () .BR pcap_compile ()
is used to compile a string into a filter program. is used to compile a string into a filter program.
The resulting filter program can then be applied to The resulting filter program can then be applied to
some stream of packets to determine which packets will be supplied to some stream of packets to determine which packets will be supplied to
skipping to change at line 249 skipping to change at line 249
If a number or ambiguous name is used, If a number or ambiguous name is used,
only the port number is checked (e.g., `\fBdst port\fR 513' will print both only the port number is checked (e.g., `\fBdst port\fR 513' will print both
tcp/login traffic and udp/who traffic, and `\fBport domain\fR' will print tcp/login traffic and udp/who traffic, and `\fBport domain\fR' will print
both tcp/domain and udp/domain traffic). both tcp/domain and udp/domain traffic).
.IP "\fBsrc port \fIport\fR" .IP "\fBsrc port \fIport\fR"
True if the packet has a source port value of \fIport\fP. True if the packet has a source port value of \fIport\fP.
.IP "\fBport \fIport\fR" .IP "\fBport \fIport\fR"
True if either the source or destination port of the packet is \fIport\fP. True if either the source or destination port of the packet is \fIport\fP.
.IP "\fBdst portrange \fIport1-port2\fR" .IP "\fBdst portrange \fIport1-port2\fR"
True if the packet is IPv4 TCP, IPv4 UDP, IPv6 TCP or IPv6 UDP and has a True if the packet is IPv4 TCP, IPv4 UDP, IPv6 TCP or IPv6 UDP and has a
destination port value between \fIport1\fP and \fIport2\fP. destination port value between \fIport1\fP and \fIport2\fP (both inclusive).
.I port1 .I port1
and and
.I port2 .I port2
are interpreted in the same fashion as the are interpreted in the same fashion as the
.I port .I port
parameter for parameter for
.BR port . .BR port .
.IP "\fBsrc portrange \fIport1-port2\fR" .IP "\fBsrc portrange \fIport1-port2\fR"
True if the packet has a source port value between \fIport1\fP and True if the packet has a source port value between \fIport1\fP and
\fIport2\fP. \fIport2\fP (both inclusive).
.IP "\fBportrange \fIport1-port2\fR" .IP "\fBportrange \fIport1-port2\fR"
True if either the source or destination port of the packet is between True if either the source or destination port of the packet is between
\fIport1\fP and \fIport2\fP. \fIport1\fP and \fIport2\fP (both inclusive).
.IP .IP
Any of the above port or port range expressions can be prepended with Any of the above port or port range expressions can be prepended with
the keywords, \fBtcp\fP or \fBudp\fP, as in: the keywords, \fBtcp\fP or \fBudp\fP, as in:
.in +.5i .in +.5i
.nf .nf
\fBtcp src port \fIport\fR \fBtcp src port \fIport\fR
.fi .fi
.in -.5i .in -.5i
which matches only TCP packets whose source port is \fIport\fP. which matches only TCP packets whose source port is \fIport\fP.
.IP "\fBless \fIlength\fR" .IP "\fBless \fIlength\fR"
 End of changes. 4 change blocks. 
4 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)