aboutsummaryrefslogtreecommitdiff
path: root/pcap_create.3pcap
diff options
context:
space:
mode:
Diffstat (limited to 'pcap_create.3pcap')
-rw-r--r--pcap_create.3pcap12
1 files changed, 6 insertions, 6 deletions
diff --git a/pcap_create.3pcap b/pcap_create.3pcap
index bd42d733f6cb..f08ac5c2b877 100644
--- a/pcap_create.3pcap
+++ b/pcap_create.3pcap
@@ -17,7 +17,7 @@
.\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
.\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
.\"
-.TH PCAP_CREATE 3PCAP "3 January 2014"
+.TH PCAP_CREATE 3PCAP "30 November 2023"
.SH NAME
pcap_create \- create a live capture handle
.SH SYNOPSIS
@@ -46,6 +46,10 @@ with 2.2 or later kernels, a
argument of "any" or
.B NULL
can be used to capture packets from all interfaces.
+.I errbuf
+is a buffer large enough to hold at least
+.B PCAP_ERRBUF_SIZE
+chars.
.PP
The returned handle must be activated with
.BR pcap_activate (3PCAP)
@@ -55,7 +59,7 @@ on the handle before activating it.
.SH RETURN VALUE
.BR pcap_create ()
returns a
-.I pcap_t *
+.B pcap_t *
on success and
.B NULL
on failure.
@@ -64,9 +68,5 @@ If
is returned,
.I errbuf
is filled in with an appropriate error message.
-.I errbuf
-is assumed to be able to hold at least
-.B PCAP_ERRBUF_SIZE
-chars.
.SH SEE ALSO
.BR pcap (3PCAP)