Thread (1 message) 1 message, 1 author, 2014-01-09

Re: No information about needed pcap version

From: David Marchand <hidden>
Date: 2014-01-09 13:47:46

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_sendpacket() is undefined for really old versions of libpcap (I think
< 1.0.0).
I suppose we might need something like configure (trying to link against
pcap lib and see if pcap_sendpacket symbol is defined).

Or we can revert 4fc6677d995bb46ddf155ee08a215f41e5ecbfe8 and declare
libpcap < X.X.X unsupported.


-- 
David Marchand


On Thu, Jan 9, 2014 at 12:59 PM, Mats Liljegren
[off-list ref]wrote:
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
information in the manuals what version I need.

Which version do I need to make this work?

Regards
Mats
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help