Name
pcap_datalink_val_to_description — Prototype: const char *pcap_datalink_val_to_description(int dlt)
Synopsis
Purpose: pcap_datalink_val_to_description
returns
a short text description when supplied with the numeric value in
dlt
. This description is contained in the array
dlt_choices
in pcap.c of the
libpcap source code. This returns the name on
success, or NULL
on error. You can find an example
of using pcap_datalink_val_to_description
in the
Section 10.2.4
section earlier in this chapter.
Get Network Security Tools now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.