April 2005
Intermediate to advanced
344 pages
11h 59m
English
pcap_set_datalink — Prototype: int pcap_set_datalink(pcap_t *p, int dlt)
Purpose: pcap_set_datalink sets the data link type
on the underlying data link layer to the value in
dlt (refer to Table 10-2 for
example data link types) where the underlying data link layer
supports multiple link types. Support for multiple link types is not
available on all link types or platforms. You can obtain a list of
all possible data link types supported for an interface using
pcap_list_datalinks. The function returns
0 on success and -1 on failure.
Read now
Unlock full access