[Wireshark-dev] What about a universal XML parsing dissector

2007-01-30 Thread Wiese, Hendrik
Hello list members, what do you think, is it possible to write some kind of a dissector that parses a bunch of XML based protocol description files and adds the corresponding protocols to the list? This would make dissector development much easier. Just a crazy idea from a guy who's starting

[Wireshark-dev] Dissecting TPKT?

2007-01-25 Thread Wiese, Hendrik
Hello, How do I dissect TPKT encapsulated packages? Is there any kind of documentation aside from the RFC? What I've done already is check if it is a TPKT package (is_tpkt...) and if it isn't (returned length == -1) I call the protocol specific dissector function directly. If it _is_ a TPKT

Re: [Wireshark-dev] Bug? TPKT length invalid? DIFF

2007-01-25 Thread Wiese, Hendrik
Are you sure your TPKT has the proper endian-ness? Is wireshark detecting the proper endianness for your platform? Well, to be honest, I'm not really sure. How can I verify this? packet-tpkt.c:193: data_len = g_htons(tvb_get_ntohs(tvb, offset + 2)); From a code readability