Wireshark-commits: [Wireshark-commits] master 1917023: Don't base interpretation of LINKTYPE_ value
From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Sun, 15 Feb 2015 22:04:28 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=1917023fc157b896a23349c0eca8c95f22f2fb6f
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

1917023 by Guy Harris (guy@xxxxxxxxxxxx):

    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@xxxxxxxxxxxx>
    

Actions performed:

    from  ad6d259   EtherCAT: Suppress pedantic warnings.
    adds  1917023   Don't base interpretation of LINKTYPE_ values on DLT_ value definitions.


Summary of changes:
 wiretap/pcap-common.c |   43 ++++++++++++++++---------------------------
 1 file changed, 16 insertions(+), 27 deletions(-)