[Wireshark-dev] Using tfs.h in a custom dissector

2012-01-31 Thread Colin Helliwell
Not sure if I'm missing something, but is it the case that a dissector in 'plugins' can't use the true_false strings provided by tfs.h? When I try (e.g. "..., TFS(&tfs_true_false), ..."), I get compilation errors: packet-is3.c(633) : error C2099: initializer is not a constant packet-is3.c(633

[Wireshark-dev] Deteccting minor version at compile time for plugin

2011-12-15 Thread Colin Helliwell
I've developed a number of dissector plugins, and I'm now moving them across from 1.4.x to 1.6.x - this needs some minor code changes because of function renaming in the Wireshark source between those two versions. Is there a mechanism already built into the build structure to detect the minor ve

[Wireshark-dev] Getting data extracted by my dissector into another

2011-07-05 Thread Colin Helliwell
I've developed a number of dissectors which dissect payload from those below and decode their own protocol. Now I want to pass my payload 'ownward' to another (the JSON dissector). I'd appreciate any tips on how to initialise/register my protocol such that the JSON dissector sees it and/or how to p