aboutsummaryrefslogtreecommitdiff
path: root/pcap_list_datalinks.3pcap.in
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2015-01-06 18:58:31 +0000
committerXin LI <delphij@FreeBSD.org>2015-01-06 18:58:31 +0000
commit50224b10fa4e157f09ee1cd03c790c9e61e76c5e (patch)
tree2a457967e5c853893b53d8dc147937913dcbd8fc /pcap_list_datalinks.3pcap.in
parent59ed76438047aa730b3a617abd873b84457fc4fd (diff)
downloadsrc-50224b10fa4e157f09ee1cd03c790c9e61e76c5e.tar.gz
src-50224b10fa4e157f09ee1cd03c790c9e61e76c5e.zip
Vendor import of libpcap 1.6.2.vendor/libpcap/1.6.2
Notes
Notes: svn path=/vendor/libpcap/dist/; revision=276759 svn path=/vendor/libpcap/1.6.2/; revision=276760; tag=vendor/libpcap/1.6.2
Diffstat (limited to 'pcap_list_datalinks.3pcap.in')
-rw-r--r--pcap_list_datalinks.3pcap.in21
1 files changed, 15 insertions, 6 deletions
diff --git a/pcap_list_datalinks.3pcap.in b/pcap_list_datalinks.3pcap.in
index 632757642b55..607efdecafc0 100644
--- a/pcap_list_datalinks.3pcap.in
+++ b/pcap_list_datalinks.3pcap.in
@@ -1,5 +1,3 @@
-.\" @(#) $Header: /tcpdump/master/libpcap/pcap_list_datalinks.3pcap.in,v 1.1 2008-10-21 07:33:02 guy Exp $
-.\"
.\" Copyright (c) 1994, 1996, 1997
.\" The Regents of the University of California. All rights reserved.
.\"
@@ -19,7 +17,7 @@
.\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
.\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
.\"
-.TH PCAP_LIST_DATALINKS 3PCAP "22 August 2010"
+.TH PCAP_LIST_DATALINKS 3PCAP "17 September 2013"
.SH NAME
pcap_list_datalinks, pcap_free_datalinks \- get a list of link-layer header
types supported by a capture device, and free that list
@@ -47,11 +45,22 @@ The caller is responsible for freeing the array with
.BR pcap_free_datalinks() ,
which frees the list of link-layer header types pointed to by
.IR dlt_list .
+.LP
+It must not be called on a pcap descriptor created by
+.B pcap_create()
+that has not yet been activated by
+.BR pcap_activate() .
.SH RETURN VALUE
.B pcap_list_datalinks()
-returns the number of link-layer header types in the array on success
-and \-1 on failure.
-If \-1 is returned,
+returns the number of link-layer header types in the array on success,
+.B PCAP_ERROR_NOT_ACTIVATED
+if called on a capture handle that has been created but not activated,
+and
+.B PCAP_ERROR
+(\-1) on other errors.
+If
+.B PCAP_ERROR
+is returned,
.B pcap_geterr()
or
.B pcap_perror()