Describe all the cases where pcap_fileno() returns a file descriptor and
where it returns -1. Based on a patch from Fumiyuki Shimizu.
This commit is contained in:
parent
339d28cefc
commit
6b414c082f
1
CREDITS
1
CREDITS
|
@ -38,6 +38,7 @@ Additional people who have contributed patches:
|
||||||
Florent Drouin <Florent dot Drouin at alcatel-lucent dot fr>
|
Florent Drouin <Florent dot Drouin at alcatel-lucent dot fr>
|
||||||
Franz Schaefer <schaefer at mond dot at>
|
Franz Schaefer <schaefer at mond dot at>
|
||||||
Fulko Hew <fulko dot hew at gmail dot com>
|
Fulko Hew <fulko dot hew at gmail dot com>
|
||||||
|
Fumiyuki Shimizu <fumifumi at abacustech dot jp>
|
||||||
Gianluca Varenni <varenni at netgroup-serv dot polito dot it>
|
Gianluca Varenni <varenni at netgroup-serv dot polito dot it>
|
||||||
Gilbert Hoyek <gil_hoyek at hotmail dot com>
|
Gilbert Hoyek <gil_hoyek at hotmail dot com>
|
||||||
Gisle Vanem <gvanem at broadpark dot no>
|
Gisle Vanem <gvanem at broadpark dot no>
|
||||||
|
|
|
@ -33,15 +33,36 @@ int pcap_fileno(pcap_t *p);
|
||||||
.ft
|
.ft
|
||||||
.fi
|
.fi
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
.B pcap_fileno()
|
If
|
||||||
returns the file descriptor number from which captured packets are read,
|
.I p
|
||||||
if a network device was opened with
|
refers to a network device that was opened for a live capture using
|
||||||
|
a combination of
|
||||||
.B pcap_create()
|
.B pcap_create()
|
||||||
and
|
and
|
||||||
.B pcap_activate()
|
.BR pcap_activate() ,
|
||||||
or with
|
or using
|
||||||
.BR pcap_open_live() ,
|
.BR pcap_open_live() ,
|
||||||
or \-1, if a ``savefile'' was opened with
|
.B pcap_fileno()
|
||||||
.BR pcap_open_offline() .
|
returns the file descriptor from which captured packets are read.
|
||||||
|
.LP
|
||||||
|
If
|
||||||
|
.I p
|
||||||
|
refers to a ``savefile'' that was opened using fuctions such as
|
||||||
|
.BR pcap_open_offline()
|
||||||
|
or
|
||||||
|
.BR pcap_fopen_offline() ,
|
||||||
|
a ``dead''
|
||||||
|
.B pcap_t
|
||||||
|
opened using
|
||||||
|
.BR pcap_open_dead() ,
|
||||||
|
or a
|
||||||
|
.B pcap_t
|
||||||
|
that was created with
|
||||||
|
.B pcap_create()
|
||||||
|
but that has not yet been activated with
|
||||||
|
.BR pcap_activate() ,
|
||||||
|
it returns \-1.
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
pcap(3PCAP), pcap_create(3PCAP), pcap_activate(3PCAP)
|
pcap(3PCAP), pcap_create(3PCAP), pcap_activate(3PCAP),
|
||||||
|
pcap_open_live(3PCAP), pcap_open_offline(3PCAP),
|
||||||
|
pcap_fopen_offline(3PCAP), pcap_open_dead(3PCAP)
|
||||||
|
|
Reference in New Issue