diff options
author | Joseph Mingrone <jrm@FreeBSD.org> | 2023-03-27 18:45:17 +0000 |
---|---|---|
committer | Joseph Mingrone <jrm@FreeBSD.org> | 2023-03-27 18:45:17 +0000 |
commit | 35af88c96350eb786f1198dfb6b29a171016e6bf (patch) | |
tree | e883c1f8391d5ca1afd57abd8ed9d2cd7c274b0b /pcap_datalink.3pcap.in | |
parent | 20616273d52132557e786a8aea1637be4c218a08 (diff) | |
download | src-35af88c96350eb786f1198dfb6b29a171016e6bf.tar.gz src-35af88c96350eb786f1198dfb6b29a171016e6bf.zip |
Import libpcap 1.10.3vendor/libpcap/1.10.3
Reviewed by: emaste
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'pcap_datalink.3pcap.in')
-rw-r--r-- | pcap_datalink.3pcap.in | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/pcap_datalink.3pcap.in b/pcap_datalink.3pcap.in index 26203683eddf..abb737508420 100644 --- a/pcap_datalink.3pcap.in +++ b/pcap_datalink.3pcap.in @@ -31,19 +31,19 @@ int pcap_datalink(pcap_t *p); .ft .fi .SH DESCRIPTION -.B pcap_datalink() +.BR pcap_datalink () returns the link-layer header type for the live capture or ``savefile'' specified by .IR p . .PP It must not be called on a pcap descriptor created by -.B \%pcap_create(3PCAP) +.BR \%pcap_create (3PCAP) that has not yet been activated by -.BR \%pcap_activate(3PCAP) . +.BR \%pcap_activate (3PCAP). .PP .I https://www.tcpdump.org/linktypes.html lists the values -.B pcap_datalink() +.BR pcap_datalink () can return and describes the packet formats that correspond to those values. .PP @@ -55,14 +55,17 @@ any given link-layer header type, such as for Ethernet. For example, the "any" device on Linux will have a link-layer header type of .B DLT_LINUX_SLL +or +.B DLT_LINUX_SLL2 even if all devices on the system at the time the "any" device is opened have some other data link type, such as .B DLT_EN10MB for Ethernet. .SH RETURN VALUE -.B pcap_datalink() +.BR pcap_datalink () returns the link-layer header type on success and .B PCAP_ERROR_NOT_ACTIVATED if called on a capture handle that has been created but not activated. .SH SEE ALSO -pcap(3PCAP), pcap-linktype(@MAN_MISC_INFO@) +.BR pcap (3PCAP), +.BR pcap-linktype (@MAN_MISC_INFO@) |