Take descriptions for pcap_file() and pcap_fileno() from libpcap-current
man page. The previous descriptions were horribly wrong.
This commit is contained in:
parent
f5d0c24512
commit
9659091d7a
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: pcap.3,v 1.17 2003/01/03 12:50:44 pooka Exp $
|
||||
.\" $NetBSD: pcap.3,v 1.18 2003/01/07 16:51:20 pooka Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1994, 1996, 1997
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
@ -331,8 +331,14 @@ returns the minor number of the version of the pcap used to write the
|
||||
savefile.
|
||||
.Pp
|
||||
.Fn pcap_file
|
||||
returns the name of the
|
||||
.Dq savefile .
|
||||
returns the standard I/O stream of the
|
||||
.Dq savefile ,
|
||||
if a
|
||||
.Dq savefile
|
||||
was opened with
|
||||
.Fn pcap_open_offline ,
|
||||
or NULL, if a network device was opened with
|
||||
.Fn pcap_open_live .
|
||||
.Pp
|
||||
.Fn pcap_stats
|
||||
returns 0 and fills in a
|
||||
@ -348,8 +354,13 @@ or
|
||||
.Fn pcap_geterr .
|
||||
.Pp
|
||||
.Fn pcap_fileno
|
||||
returns the file descriptor number of the
|
||||
.Dq savefile .
|
||||
returns the file descriptor number from which captured packets are read
|
||||
if a network device was opened with
|
||||
.Fn pcap_open_live ,
|
||||
or \-1, if a
|
||||
.Dq savefile
|
||||
was opened with
|
||||
.Fn pcap_open_offline .
|
||||
.Pp
|
||||
.Fn pcap_perror
|
||||
prints the text of the last pcap library error on
|
||||
|
Loading…
Reference in New Issue
Block a user