Hi everybody !

I would like to know if it is possible to pass more than one parameter to the 
pcap_loop function and consequently to the pcap_handler function:

int pcap_loop(pcap_t *p,int cnt, pcap_handler callback, u_char *user);

void pcap_handler(u_char *args, const struct pcap_pkthdr *header, const u_char 
*packet);

I know this is done with the "u_char *user" in the pcap_loop function and with the 
"u_char *args" in the pcap_handler function.

Thank you very much.

Beatriz
-- 
__________________________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup

Reply via email to