This is our old Q&A Site. Please post any new questions and answers at


I'm having some issues with pinfo->private_data method , I think I'm using it correctly and I'v seen in some revision that private_data is removed. So is private_data working ? Is there another method to pass data to a sub-dissector ?

asked 10 Jan '14, 07:28

Afrim's gravatar image

accept rate: 22%

Passing data between dissectors using pinfo->private_data still mostly works (for example, there can be problems if exceptions occur), but it is not the recommended method and one day this method may disappear altogether. It is far better to pass the data using the "new-style" dissection API's. Look into using such functions as, new_create_dissector_handle(), dissector_try_uint_new(), ...

You can see the difference in coding by looking at several fairly recent commits by Michael Mann, who spent some time converting many cases:

... etc.

permanent link

answered 10 Jan '14, 07:50

cmaynard's gravatar image

cmaynard ♦♦
accept rate: 20%

Ok that's what I needed thank you

(10 Jan '14, 08:17) Afrim
Your answer
toggle preview

Follow this question

By Email:

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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

Question tags:


question asked: 10 Jan '14, 07:28

question was seen: 960 times

last updated: 10 Jan '14, 08:18

p​o​w​e​r​e​d by O​S​Q​A