Wireshark mailing list archives
Re: Registering protocol details
From: Pascal Quantin <pascal.quantin () gmail com>
Date: Sun, 7 Aug 2016 21:51:36 +0200
Hi Paul, 2016-08-07 18:42 GMT+02:00 Paul Offord <Paul.Offord () advance7 com>:
Hi Anders, Ah – I understand. I had asked Gerald about that at SF16 and he mentioned the ability to use other pcap-ng block types. I’d like to do that in the future, but I don’t want to tackle it yet. This wouldn’t overcome the problem I have anyway. So going back to the original question, can I call function calls like proto_register_add_subtree and proto_register_add_item from with the dissect_foo function or do I have to make them from proto_register_foo?
As far as I know you need to register fields before dissection starts. It can be done dynamically based on some file selected in preferences, but I don't think it can be done on the fly during dissection. That said when looking at the proto_register_field_array() code, I do not see any assertion related to this, but I would not be surprised if things like filtering do not work as expected if you add new fields as dissection goes. And as far as I can tell, no dissector is doing something as you suggest yet. I will let another developer correct my assumptions if I'm wrong. Regards, Pascal.
___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: https://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- Registering protocol details Paul Offord (Aug 07)
- Re: Registering protocol details Anders Broman (Aug 07)
- Re: Registering protocol details Paul Offord (Aug 07)
- Re: Registering protocol details Anders Broman (Aug 07)
- Re: Registering protocol details Paul Offord (Aug 07)
- Re: Registering protocol details Pascal Quantin (Aug 07)
- Re: Registering protocol details Paul Offord (Aug 08)
- Re: Registering protocol details Paul Offord (Aug 07)
- Re: Registering protocol details Anders Broman (Aug 07)
- Re: Registering protocol details Dario Lombardo (Aug 07)