Folks, As per my requirements i will have to dissect eth header for all packets of my relevant protocol. So i was wondering if we have such functionality , i may write another plugin for eth and call it from my protocol plugin. asked 06 Aug '12, 05:09 yogeshg |
One Answer:
I'm not entirely sure what it is you're trying to do, but, yes dissectors/plugins can call other dissectors/plugins either directly (call_dissector()) or indirectly (caller registers a dissector table and then eventually calls dissector_try_uint() or similar and the callee registers itself for a value in that dissector table with dissector_add_uint() or similar). answered 06 Aug '12, 06:02 JeffMorriss ♦ |
thanks for your answer ,could you point me any example for this ? some plugin where this is being used
Almost all dissectors behave like this. For one example, see packet-sctp.c.