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's gravatar image

yogeshg
41192026
accept rate: 0%


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).

link

answered 06 Aug '12, 06:02

JeffMorriss's gravatar image

JeffMorriss ♦
2.2k432
accept rate: 25%

thanks for your answer ,could you point me any example for this ? some plugin where this is being used

(06 Aug '12, 07:48) yogeshg

Almost all dissectors behave like this. For one example, see packet-sctp.c.

(06 Aug '12, 08:19) JeffMorriss ♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×465
×211

Asked: 06 Aug '12, 05:09

Seen: 577 times

Last updated: 06 Aug '12, 08:19

powered by OSQA