hey guys,

I'm having a few problems with a pcap callback function and I can't see what
is wrong with it!

CC ERROR:
snoop.c:67: two or more data types in declaration of `process_packet'
snoop.c:67: two or more data types in declaration of `process_packet'
snoop.c:67: two or more data types in declaration of `process_packet'
snoop.c:67: two or more data types in declaration of `process_packet'
snoop.c:67: two or more data types in declaration of `process_packet'
snoop.c:67: two or more data types in declaration of `process_packet'
snoop.c:67: two or more data types in declaration of `process_packet'
snoop.c:67: two or more data types in declaration of `process_packet'
snoop.c:67: two or more data types in declaration of `process_packet'
snoop.c:67: two or more data types in declaration of `process_packet'
snoop.c:67: two or more data types in declaration of `process_packet'
snoop.c:67: two or more data types in declaration of `process_packet'
snoop.c:67: two or more data types in declaration of `process_packet'
snoop.c:182: conflicting types for `process_packet'
snoop.c:67: previous declaration of `process_packet'

the relevant lines are as follows

PROTOTYPE:
void process_packet(u_char *datav, const struct pcap_pkthdr* header, const
u_char *p);

LOOP:
 while(pcap_loop(fd, 0, (pcap_handler)process_packet, 0));

FUNCTION START:
void process_packet(u_char *datav, const struct pcap_pkthdr* header, const
u_char *p) {

any help would be greatly appreciated

Regards,
Iain McAleer

-
This is the TCPDUMP workers list. It is archived at
http://www.tcpdump.org/lists/workers/index.html
To unsubscribe use mailto:[EMAIL PROTECTED]?body=unsubscribe

Reply via email to