diff options
author | Philip Paeps <philip@FreeBSD.org> | 2019-10-06 04:26:37 +0000 |
---|---|---|
committer | Philip Paeps <philip@FreeBSD.org> | 2019-10-06 04:26:37 +0000 |
commit | 30a580a870fabfea51e4b970c488e58bd1515ce4 (patch) | |
tree | cf18fcdc7c1818418ee5fc375ca4ba2094583a41 /pcap_setfilter.3pcap | |
parent | d109bf9e4b609b5a0626b433e56db4a47dc530bb (diff) | |
download | src-30a580a870fabfea51e4b970c488e58bd1515ce4.tar.gz src-30a580a870fabfea51e4b970c488e58bd1515ce4.zip |
Import libpcap 1.9.1vendor/libpcap/1.9.1
Notes
Notes:
svn path=/vendor/libpcap/dist/; revision=353141
svn path=/vendor/libpcap/1.9.1/; revision=353142; tag=vendor/libpcap/1.9.1
Diffstat (limited to 'pcap_setfilter.3pcap')
-rw-r--r-- | pcap_setfilter.3pcap | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/pcap_setfilter.3pcap b/pcap_setfilter.3pcap index 6efd25398281..872969398469 100644 --- a/pcap_setfilter.3pcap +++ b/pcap_setfilter.3pcap @@ -17,7 +17,7 @@ .\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF .\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. .\" -.TH PCAP_SETFILTER 3PCAP "7 April 2014" +.TH PCAP_SETFILTER 3PCAP "25 July 2018" .SH NAME pcap_setfilter \- set the filter .SH SYNOPSIS @@ -37,16 +37,19 @@ is used to specify a filter program. is a pointer to a .I bpf_program struct, usually the result of a call to -.BR pcap_compile() . +.BR \%pcap_compile(3PCAP) . .SH RETURN VALUE .B pcap_setfilter() -returns 0 on success and \-1 on failure. -If \-1 is returned, -.B pcap_geterr() +returns 0 on success and +.B PCAP_ERROR +on failure. If +.B PCAP_ERROR +is returned, +.B pcap_geterr(3PCAP) or -.B pcap_perror() +.B pcap_perror(3PCAP) may be called with .I p as an argument to fetch or display the error text. .SH SEE ALSO -pcap(3PCAP), pcap_compile(3PCAP), pcap_geterr(3PCAP) +pcap(3PCAP) |