[Winpcap-users] Re: [error]'pcap_dump' : cannot convert parameter 1 from 'struct pcap_dumper *' to 'unsigned char *'

joe kibz chikabanga2005 at yahoo.com
Sat May 13 12:40:24 GMT 2006


Problem:

the params
            pcap_dumper_t *dumpfile;
            const struct pcap_pkthdr *header;
            const u_char * pkt_data; 

the method
            //dump to file
            pcap_dump(dumpfile, header, pkt_data);

the one error 
            cannot convert parameter 1 from 'struct pcap_dumper *' to 'unsigned char *'

the given syntax 

        void pcap_dump(u_char* user, const struct pcap_pkthdr* h, const u_char* sp);          


[ the method ] is how handling offline dumps is shown in the winpcap documentation . I tried it in VC++ i'm gettin that one error .

What's the problem?


joe

		
---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winpcap.org/pipermail/winpcap-users/attachments/20060513/9a572d4c/attachment.htm


More information about the Winpcap-users mailing list