Closed darki2002 closed 8 years ago
new_create_dissector_handle (of epan/packet.c) not available any more in the latest wireshark version 2.0.4
aus config.h moeglicher ansatz: ifdef VERSION_MAJOR == 1 new_dissector_handle else dissector_handle endif
Ifdef ok and working, because:
In the old Wireshark version 1, the dissector_t has another format than in the ws 2.0.4 (or even other ws 2 versions).
Old:
typedef int (*dissector_t)(tvbuff_t *, packet_info *, proto_tree *); typedef int (*new_dissector_t)(tvbuff_t *, packet_info *, proto_tree *, void *);
New:
typedef int (*dissector_t)(tvbuff_t *, packet_info *, proto_tree *, void *);
Maybe we should not split it in wireshark v1 and v2 but instead search the exact point when new_dissector_t was merged into dissector_t
Change commit in Wireshark repository (11 Dec 2015): Wireshark commit 99028789cbf3f0e6193d6158ff9e0e3b11b2c505
This problem seems to be fixed some days ago - closed -
The newest commits / merge broke the windows build. Appveyor errors: