summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmc <jmc@openbsd.org>2018-12-13 06:47:36 +0000
committerjmc <jmc@openbsd.org>2018-12-13 06:47:36 +0000
commit487f76bd54f6cfe1750071773dd2019c4946b6e2 (patch)
tree0c21d5b92564d0d675634ae9908cf336c519bf09
parentCleanup, no functional change: (diff)
downloadwireguard-openbsd-487f76bd54f6cfe1750071773dd2019c4946b6e2.tar.xz
wireguard-openbsd-487f76bd54f6cfe1750071773dd2019c4946b6e2.zip
further document pcap_dump; from jan stary
text tweaked and ok djm
-rw-r--r--lib/libpcap/pcap.318
1 files changed, 13 insertions, 5 deletions
diff --git a/lib/libpcap/pcap.3 b/lib/libpcap/pcap.3
index a6cbdac2e99..a98cfa90f5d 100644
--- a/lib/libpcap/pcap.3
+++ b/lib/libpcap/pcap.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pcap.3,v 1.49 2018/12/12 20:12:03 jmc Exp $
+.\" $OpenBSD: pcap.3,v 1.50 2018/12/13 06:47:36 jmc Exp $
.\"
.\" Copyright (c) 1994, 1996, 1997
.\" The Regents of the University of California. All rights reserved.
@@ -19,7 +19,7 @@
.\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
.\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
.\"
-.Dd $Mdocdate: December 12 2018 $
+.Dd $Mdocdate: December 13 2018 $
.Dt PCAP_OPEN_LIVE 3
.Os
.Sh NAME
@@ -353,9 +353,17 @@ or
may be used to display the error text.
.Pp
.Fn pcap_dump
-outputs a packet to the savefile opened with
-.Fn pcap_dump_open .
-Note that its calling arguments are suitable for use with
+outputs a packet to a save file previously opened using
+.Fn pcap_dump_open
+or
+.Fn pcap_dump_fopen .
+Note that the
+.Fa user
+argument contains the handle to the save file and should be of type
+.Ft "pcap_dumper_t *" .
+This makes
+.Fn pcap_dump
+a suitable callback function for use as an argument to
.Fn pcap_dispatch .
.Pp
.Fn pcap_inject