April 2005
Intermediate to advanced
344 pages
11h 59m
English
pcap_datalink_val_to_description — Prototype: const char *pcap_datalink_val_to_description(int dlt)
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.
Read now
Unlock full access