Wireshark-dev: Re: [Wireshark-dev] Browse field in the preferences

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Wed, 5 Aug 2009 16:50:20 -0700

On Aug 5, 2009, at 3:30 PM, Aurélien Decagny wrote:

For the field part, you are right. But my question was more about how to make easily the browse button, so that the user don't need to write all
the path for the data. And also how to get this path.

Currently, there is no way to do that in Wireshark; you can create a string preference, but the user would have to type the path in.

At some point, we should add a "path name" preference type, which would be like a string preference, except that it would have a browse button allowing the user to browse for a path name.

I also have another question, which has no link with the first one, but
I won't create a new thread just for it: do you know how to get the
number of the No. column of Wireshark? (there should be a variable, but
I can't find the name of this one...)

In a dissector, pinfo->fd->num (where pinfo is the "packet_info *" second argument to the dissector) will give you the frame number of the frame currently being dissected.