PCAP_DATALINK_VAL_TO_NAME(3PCAP)
π¦ PCAP_DATALINK_VAL_TO_NAME β the 3PCAP manual page π¦
okay so bestie, welcome to the PCAP_DATALINK_VAL_TO_NAME(3PCAP) page β yes, 3PCAP is the manual section, and this whole thing is about getting a name or description for a link-layer header type value. itβs giving βtiny functions, very usefulβ energy. π
β¨ NAME β¨
pcap_datalink_val_to_name, pcap_datalink_val_to_description, and pcap_datalink_val_to_description_or_dlt β get a name or description for a link-layer header type value. π
π SYNOPSIS π
#include <pcap.h>
const char *pcap_datalink_val_to_name(int dlt);
const char *pcap_datalink_val_to_description(int dlt);
const char *pcap_datalink_val_to_description_or_dlt(int dlt);
π DESCRIPTION π
pcap_datalink_val_to_name()β translates a link-layer header type value to the corresponding link-layer header type name. that name is theDLT_name for the link-layer header type value with theDLT_removed. if the type value does not correspond to a knownDLT_value,NULLis returned. πpcap_datalink_val_to_description()β translates a link-layer header type value to a short description of that link-layer header type. if the type value does not correspond to a knownDLT_value,NULLis returned.pcap_datalink_val_to_description_or_dlt()β translates a link-layer header type value to a short description of that link-layer header type, just likepcap_datalink_val_to_description(). but if the type value does not correspond to a knownDLT_value, the string"DLT n"is returned, wherenis the value of thedltargument. noNULLjump-scare here, bestie. π«Ά
π BACKWARD COMPATIBILITY π
the pcap_datalink_val_to_description_or_dlt() function first became available in libpcap release 1.9.1. in previous releases, pcap_datalink_val_to_description() would have to be called and, if it returned NULL, a default string would have to be constructed. lowkey a littleζε·₯ arts-and-crafts moment. βοΈπ
π SEE ALSO π
pcap(3PCAP) π
mwah π β source/version: PCAP_DATALINK_VAL_TO_NAME(3PCAP), date: 4 May 2022. periodt. π
π¦ where this page comes from
- alpine 3.22: libpcap-doc 1.10.7-r0 Β· BSD-3-Clause
- alpine 3.23: libpcap-doc 1.10.7-r0 Β· BSD-3-Clause
- alpine 3.24: libpcap-doc 1.10.7-r0 Β· BSD-3-Clause
- centos-stream 10: libpcap-devel 14:1.10.4-8.el10 Β· ISC AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause-UC
- debian bookworm: libpcap0.8-dev 1.10.3-1
- debian trixie: libpcap0.8-dev 1.10.5-2
- fedora 43: libpcap-devel 14:1.10.5-3.fc43 Β· ISC AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause-UC
- fedora 43: libpcap-devel 14:1.10.5-3.fc43 Β· ISC AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause-UC
- fedora 43: libpcap-devel 14:1.10.7-1.fc43 Β· ISC AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause-UC
- fedora 43: libpcap-devel 14:1.10.7-1.fc43 Β· ISC AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause-UC
- fedora 44: libpcap-devel 14:1.10.6-2.fc44 Β· ISC AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause-UC
- fedora 44: libpcap-devel 14:1.10.6-2.fc44 Β· ISC AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause-UC
- fedora 44: libpcap-devel 14:1.10.7-1.fc44 Β· ISC AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause-UC
- fedora 44: libpcap-devel 14:1.10.7-1.fc44 Β· ISC AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause-UC
- nixos 26.05: libpcap 1.10.7
- opensuse-leap 16.0: libpcap-devel 1.10.5-160000.5.1 Β· BSD-3-Clause
- opensuse-leap 16.0: libpcap-devel 1.10.5-160000.5.1 Β· BSD-3-Clause
- opensuse-leap 16.0: libpcap-devel 1.10.5-160000.5.1 Β· BSD-3-Clause
- opensuse-leap 16.0: libpcap-devel 1.10.5-160000.5.1 Β· BSD-3-Clause
- ubuntu noble: libpcap0.8-dev 1.10.4-4.1ubuntu3
- ubuntu noble: libpcap0.8-dev 1.10.4-4.1ubuntu3.1
- ubuntu questing: libpcap0.8-dev 1.10.5-2ubuntu2
- ubuntu resolute: libpcap0.8-dev 1.10.6-1ubuntu1 Β· BSD-3-clause-var3
- ubuntu resolute: libpcap0.8-dev 1.10.6-1ubuntu1.1 Β· BSD-3-clause-var3
- ubuntu stonking: libpcap0.8-dev 1.10.7-1ubuntu1 Β· BSD-3-clause-var3
- Copyright (c) 1994, 1996, 1997 The Regents of the University of California. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms