Don't base interpretation of LINKTYPE_ values on DLT_ value definitions.
authorGuy Harris <guy@alum.mit.edu>
Sun, 15 Feb 2015 22:03:12 +0000 (14:03 -0800)
committerGuy Harris <guy@alum.mit.edu>
Sun, 15 Feb 2015 22:04:23 +0000 (22:04 +0000)
commit1917023fc157b896a23349c0eca8c95f22f2fb6f
treef7896f2b2d0ed0b9148327041da1a3556d6bef52
parentad6d259e1e709cc1654c9c134553e95075c9ac2f
Don't base interpretation of LINKTYPE_ values on DLT_ value definitions.

Instead, explicitly check for particular build platforms.  This means
that the interpretation of the link-layer type values with different
meanings on different platforms won't be dependent on the particular
version of libpcap with which Wireshark happens to be built, and also
means that we don't have to fix pcap-common.c to include pcap.h or
net/bpf.h.

Fix some comments while we're at it.

Bug: 10956
Change-Id: If331d9b92081fb0bdf416620fb2ad8dce57dea6b
Reviewed-on: https://code.wireshark.org/review/7140
Reviewed-by: Guy Harris <guy@alum.mit.edu>
wiretap/pcap-common.c