Name
pcap_datalink_name_to_val — Prototype: int pcap_datalink_name_to_val(const char *name);
Synopsis
Purpose: pcap_datalink_name_to_val
returns the
numeric value of a data link type when supplied as a string. The
string name
is a data link type, minus the
DLT_
, as described in Table 10-2. The numeric value is returned on success, or
-1
on error.
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.