You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now, these constants are not exported (defined in pcap-common.c).
In order to use a generic api for reading pcap and pcap-ng, pcap_datalink() should return the DLT_* value for pcap-ng.
As a second option, the LINKTYPE_* values should be exported to a header file and a second function (pcap_linktype() or so) should be introduced to return the LINKTYPE_* values without conversion.
The text was updated successfully, but these errors were encountered:
Converted from SourceForge issue 3032040, submitted by georgm
for classic pcap, pcap_datalink() returns the DLT_* types (linktype is converted via linktype_to_dlt when reading a packet)
for pcap-ng, pcap_datalink() retuns the LINKTYPE_* types (linktype is not converted when reading) as described here:
http://www.winpcap.org/ntar/draft/PCAP-DumpFileFormat.html#appendixLinkTypes
Now, these constants are not exported (defined in pcap-common.c).
In order to use a generic api for reading pcap and pcap-ng, pcap_datalink() should return the DLT_* value for pcap-ng.
As a second option, the LINKTYPE_* values should be exported to a header file and a second function (pcap_linktype() or so) should be introduced to return the LINKTYPE_* values without conversion.
The text was updated successfully, but these errors were encountered: