aboutsummaryrefslogtreecommitdiff
path: root/contrib/libpcap/pcap_set_timeout.3pcap
diff options
context:
space:
mode:
authorJoseph Mingrone <jrm@FreeBSD.org>2023-02-13 22:06:51 +0000
committerJoseph Mingrone <jrm@FreeBSD.org>2025-01-29 19:29:28 +0000
commit7aedea8685359fa5e914a7341ef0ef33b8227d7c (patch)
tree83671936f5bbf82e0d1bb675bb6853d313a31e33 /contrib/libpcap/pcap_set_timeout.3pcap
parent73e80499b948269f83ee95cc2a310cc04ae092d3 (diff)
libpcap: Update to 1.10.3
Prior to this MFC, the stable/13 libpcap was at version 1.9.1, which was released over five years ago. Several CVEs have been identified in that version. For a detailed list, see https://www.tcpdump.org/public-cve-list.txt. Reviewed by: kp (pf changes) Sponsored by: The FreeBSD Foundation (cherry picked from commit 6d1c946e916845d01062e146aad5395410da1e54) (cherry picked from commit 0c59e0b4e5817f139ce28486085b2f196351c7a3) (cherry picked from commit 512c553671bef26e93342d4ae1ec5f60d8ae112b) (cherry picked from commit 6f9cba8f8b5efd16249633e52483ea351876b67b) (cherry picked from commit 437f05885047c533cadf15b564729cfd0273d2fe) Commit 437f05885047c533cadf15b564729cfd0273d2fe has been adapted to only include the changes for the libpcap 1.10.3 update.
Diffstat (limited to 'contrib/libpcap/pcap_set_timeout.3pcap')
-rw-r--r--contrib/libpcap/pcap_set_timeout.3pcap13
1 files changed, 8 insertions, 5 deletions
diff --git a/contrib/libpcap/pcap_set_timeout.3pcap b/contrib/libpcap/pcap_set_timeout.3pcap
index e67b8132f732..d909b2c4445e 100644
--- a/contrib/libpcap/pcap_set_timeout.3pcap
+++ b/contrib/libpcap/pcap_set_timeout.3pcap
@@ -31,7 +31,7 @@ int pcap_set_timeout(pcap_t *p, int to_ms);
.ft
.fi
.SH DESCRIPTION
-.B pcap_set_timeout()
+.BR pcap_set_timeout ()
sets the packet buffer timeout that will be used on a capture handle
when the handle is activated to
.IR to_ms ,
@@ -44,10 +44,13 @@ behavior if the timeout is set to zero or to a negative value. We
recommend always setting the timeout to a non-zero value unless
immediate mode is set, in which case the timeout has no effect.
.SH RETURN VALUE
-.B pcap_set_timeout()
-returns 0 on success or
+.BR pcap_set_timeout ()
+returns
+.B 0
+on success or
.B PCAP_ERROR_ACTIVATED
if called on a capture handle that has been activated.
.SH SEE ALSO
-pcap_create(3PCAP), pcap_activate(3PCAP),
-\%pcap_set_immediate_mode(3PCAP)
+.BR pcap_create (3PCAP),
+.BR pcap_activate (3PCAP),
+.BR \%pcap_set_immediate_mode (3PCAP)