[dpdk-dev] No information about needed pcap version

2014-01-09 Thread Mats Liljegren
You could let PCAP_SEND be always 1 in rte_eth_pcap.h and then document that for libpcap < 1.0.0 you need to change PCAP_SEND to 0 to avoid link error for pcap_sendpacket(). Regards Mats On Thu, Jan 9, 2014 at 2:47 PM, David Marchand wrote: > Hello, > > Indeed, this check on a define is wrong.

[dpdk-dev] No information about needed pcap version

2014-01-09 Thread David Marchand
Hello, Indeed, this check on a define is wrong. pcap.h does not seem to have information on library version (nor a #define linked to pcap_sendpacket functionality). We need to think of a better check but, for now, you can try to #define PCAP_SEND to 1 in lib/librte_pmd_pcap/rte_eth_pcap.h. pcap_

[dpdk-dev] No information about needed pcap version

2014-01-09 Thread Mats Liljegren
In file lib/librte_pmd_pcap/rte_eth_pcap.h there is a test to see whether function pcap_sendpacket is a macro or not. If not, send is not supported using pcap. My pcap library do have the function, but not defined as a macro. I'm using libpcap-dev version 1.4.0, but I couldn't find any informatio