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

I have an experimental network which is running IP-UDP-IP-UDP-XXX. I've written a dissector plugin for the XXX protocol and used dissector_add_uint_range to bind it to multiple UDP ports (more or less like in packet-http). I also used prefs_register_range_preference to allow the user to specify the UDP ports. That all works fine.

I then went into the epan/dissectors directory and made the same modifications in packet-ip (using dissector_add_uint_range to bind ip_handle to a udp.port range). The call to prefs_register_range_preference seems to be working: the config page allows me to set the udp.port range. However, the ip dissectors are not called.

I can use "decode as" to force the second level of ip decoding, but there are a lot of ports to do this for.

Any thoughts on why the changes to the (much more complicated) packet-ip code aren't working?

Thanks, Greg

asked 11 Dec '15, 13:05

GSL's gravatar image

GSL
6112
accept rate: 0%

Be the first one to answer this question!
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

Question tags:

×637
×178
×9

question asked: 11 Dec '15, 13:05

question was seen: 1,457 times

last updated: 11 Dec '15, 13:05

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