Re: [Wireshark-dev] proto add time or string for time data on different offsets

2011-02-13 Thread Chris Maynard
Ivan R. Sy writes: > i have this in the data part of the packet > > offset7 = secs > offset8 = mins > offset9 = hours > offset10 = day > offset11 = month > offset12 = double digit year (in this case "11" for 2011) > > My question is, is there a proto add item (something the like, or a combinati

Re: [Wireshark-dev] Registering header fields later/in other functions?

2011-02-13 Thread Thomas Wiens
On 2/13/2011 9:36 AM, Andreas wrote: I have dissectors classes that are spreaded over a lot of source files. When Wireshark calls the function plugin_register() of my dissector, all classes' Register() functions are called. So there is no problem with making a dissector modular. This seems to

Re: [Wireshark-dev] Registering header fields later/in other functions?

2011-02-13 Thread Andreas
Am 12.02.2011 22:32, schrieb Thomas Wiens: Hi, I am developing a custom dissector in C. For clearness I want to put parts of the dissector in different source files. The problem I have, is that the header fields have to be registered directly after the proto_register_protocol() call. It would b