Ethereal

[Ethereal-dev] removing tap listener
Google
 
Web Ethereal.com

Home | Introduction | Documentation | Lists | FAQ | Development | Wiki | Bugs

Ethereal-dev: September 2004


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>


Powered by MHonArc 2.6.10