PCAP_DATALINK_NAME_TO_VAL(3)
π NAME β pcap_datalink_name_to_val in the Library Functions Manual π
okay so bestie, this is pcap_datalink_name_to_val, and it's here to get the link-layer header type value corresponding to a header type name. That's the whole NAME section, no cap.
β¨ SYNOPSIS β¨
#include <pcap/pcap.h>
int pcap_datalink_name_to_val(const char *name);
π¦ DESCRIPTION π¦
pcap_datalink_name_to_val() translates a link-layer header type name β specifically a DLT_ name with the DLT_ removed β to the corresponding link-layer header type value. The translation is case-insensitive, so capitalization is literally not the vibe check here.
π₯ RETURN VALUE π₯
On success, pcap_datalink_name_to_val() returns the type value. If the name is not a known type name, it returns PCAP_ERROR β that's the "nope, don't know her" answer.
π SEE ALSO π
π cute sign-off: this page is from the Library Functions Manual, dated 25 July 2018, and the footer says PCAP_DATAL...NAME_TO_VAL(3) β mwah, slay! π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- 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