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

Getting user input for dissection

0

Hi,

In wireshark is there any way I can get input from user at run time and use that information to dissect packet information. The user information will be basically used to assign names to dissected fields.

asked 29 Feb '12, 19:04

ashish_goel's gravatar image

ashish_goel
15121216
accept rate: 0%


One Answer:

1

You may want to look into UAT's, see epan/uat.h. These can be used in dissector preferences, they're used for example by the HTTP dissector.

answered 01 Mar '12, 02:23

Jaap's gravatar image

Jaap ♦
11.7k16101
accept rate: 14%

thanks jaap for your reply.. But where in the user submits the input and how this information gets available to dissect_XXX() function of the dissector.

(02 Mar '12, 10:28) ashish_goel

Hi!I'm encounter the same trouble . Did you resolve you problem? waiting for your reply.Thanks!

(20 Jun '12, 19:09) smilezuzu

Please look at the HTTP dissector. Look for header_name and header_desc, and UAT.

(21 Jun '12, 01:18) Jaap ♦