Re: [tcpdump-workers] Libpcap - pcapfindalldevs

2009-02-02 Thread Benoit
"); #endif } if (i==0) { #ifdef WIN32 fprintf(stderr," \tNo interfaces found! Exiting.\n"); #else fprintf(stderr," \tThis software must be run as root: No interfaces found!"); #endif exit(EXIT_FAILURE); } -- Benoit RAT www.neub.co.nr

Re: [tcpdump-workers] Compatibility Libpcap/Winpcap and timout of

2009-01-28 Thread Benoit
sure to receive > correctly the packet, > Why? Does pcap_next_ex() return 0 or a negative value? it return 0 because the timeout is less than the time for: t(PC -> FPGA) + t(FPGA setup) + t(FPGA -> PC). Thanks for your help. -- Benoit RAT www.neub.co.nr On Wed, Jan 28, 2009 at

[tcpdump-workers] Compatibility Libpcap/Winpcap and timout of pcap_next_ex().

2009-01-27 Thread Benoit
ndle, &(header), (const u_char**)(&p_buff)); if(ret>0) { nofB=ifhard->header->len; memcpy(buff,p_buff,nofB); break; } } Can you help me to make the timeout of pcap_next_ex() works under linux? Thanks -- Benoit RAT www.neub.co.nr - This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.