April 2005
Intermediate to advanced
344 pages
11h 59m
English
pcap_datalink — Prototype: int pcap_datalink(pcap_t *p)
Purpose: pcap_datalink returns the type of the
underlying data link layer of a session. This can be compared to the
predefined list of values included in Table 10-2,
or converted to a human-readable string using
pcap_datalink_val_to_name or
pcap_datalink_val_to_description. You can find an
example of using pcap_datalink in the Section 10.2.4
section earlier in this chapter.
Read now
Unlock full access