mirror of
https://github.com/nmap/nmap.git
synced 2026-02-03 20:16:33 +00:00
Update included libpcap to 1.10.1
This commit is contained in:
@@ -31,25 +31,27 @@ int pcap_setfilter(pcap_t *p, struct bpf_program *fp);
|
||||
.ft
|
||||
.fi
|
||||
.SH DESCRIPTION
|
||||
.B pcap_setfilter()
|
||||
.BR pcap_setfilter ()
|
||||
is used to specify a filter program.
|
||||
.I fp
|
||||
is a pointer to a
|
||||
.I bpf_program
|
||||
struct, usually the result of a call to
|
||||
.BR \%pcap_compile(3PCAP) .
|
||||
.BR \%pcap_compile (3PCAP).
|
||||
.SH RETURN VALUE
|
||||
.B pcap_setfilter()
|
||||
returns 0 on success and
|
||||
.BR pcap_setfilter ()
|
||||
returns
|
||||
.B 0
|
||||
on success and
|
||||
.B PCAP_ERROR
|
||||
on failure. If
|
||||
.B PCAP_ERROR
|
||||
is returned,
|
||||
.B pcap_geterr(3PCAP)
|
||||
.BR pcap_geterr (3PCAP)
|
||||
or
|
||||
.B pcap_perror(3PCAP)
|
||||
.BR pcap_perror (3PCAP)
|
||||
may be called with
|
||||
.I p
|
||||
as an argument to fetch or display the error text.
|
||||
.SH SEE ALSO
|
||||
pcap(3PCAP)
|
||||
.BR pcap (3PCAP)
|
||||
|
||||
Reference in New Issue
Block a user