Wireshark mailing list archives

Re: was: Adding Files to Wireshark (new developer)


From: Stephen Fisher <steve () stephen-fisher com>
Date: Fri, 1 Apr 2011 15:54:40 -0600

On Fri, Apr 01, 2011 at 02:36:50PM -0400, Bill Meier wrote:

Take at look at the data struct passed to register_tap() (or whatever 
it's called) when the tap is created by the dissector.

I'm not a 'tap' expert, but I think a ptr to that struct is passed to 
the tap callback fcn called for each frame.

The tap_queue_packet() function takes three parameters:

void tap_queue_packet(int tap_id, packet_info *pinfo, const void 
*tap_specific_data)

The third value, tap_specific_data can be used to pass any data you 
would like from a dissector to the tap functions.

For an example, look at the dissect_http_message function in 
epan/dissectors/packet-http.c which passes the eo_info struct to the 
http_eo_tap (which is read by the tap code in gtk/export_object_http.c 
function eo_http_packet).
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe


Current thread: