Ethereal-dev: Re: [Ethereal-dev] removing tap listener

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: ronnie sahlberg <ronniesahlberg@xxxxxxxxx>
Date: Tue, 28 Sep 2004 00:30:49 +1000
they can not both use the same structure,  the pointers must be different.

wrap the structure inside another structure so you get two different pointers.




On Mon, 27 Sep 2004 15:13:02 +0200, Miha Jemec <m.jemec@xxxxxxxxxxx> wrote:
> Hi,
> 
> what are the correct steps if my application wants to observe two
> protocols using tap system in the same time:
> 
> register_tap_listener("prot1", user_data, filter1, prot1_draw,
> prot1_packet, prot1_reset);
> register_tap_listener("prot2", user_data, filter2, prot2_draw,
> prot2_packet, prot2_reset);
> 
> retap_packets(&cfile);
> 
> remove_tap_listener(user_data);
> 
> It seems to me, that only one listener is removed from the tap listener.
> What is the correct procedure?
> 
> They both use the same user_data structure.
> 
> Tnx, Miha
> 
> --
> Miha Jemec <m.jemec@xxxxxxxxxxx>
> 
> _______________________________________________
> Ethereal-dev mailing list
> Ethereal-dev@xxxxxxxxxxxx
> http://www.ethereal.com/mailman/listinfo/ethereal-dev
>