Just a little suggestion: upgrade to winpcap 3.0 alpha!
We have added a new pcap API to retrieve packets, pcap_read_ex, which is much more powerful (no callbacks!). Moreover, in the developer's pack of winpcap3.0 you can find some new documentation, and a lot of very clear tutorial (thanks to Loris Degioanni!). GV ----- Original Message ----- From: "Beatriz Silva" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, August 14, 2002 10:44 AM Subject: [WinPcap-users] Passing of parameters in pcap_loop > 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 > >
