pcap: fix build when pcap_sendpacket is unavailable
authorDavid Marchand <david.marchand@6wind.com>
Fri, 22 Nov 2013 10:24:57 +0000 (11:24 +0100)
committerDavid Marchand <david.marchand@6wind.com>
Wed, 26 Feb 2014 10:07:28 +0000 (11:07 +0100)
commit60191b8919ef630a0fd50c32a734dd04802ccbfc
treee712be91df806bc9bcc48898ddfc13c7979ad187
parentfa2e9958db6313feb97bd4844ce2e684b181cd16
pcap: fix build when pcap_sendpacket is unavailable

Before libpcap 1.0.0, pcap_sendpacket was not available on linux targets (unless
backported).
When using such a library, we won't be able to send packet on the wire, yet we
can still dump packets into a pcap file.

Signed-off-by: David Marchand <david.marchand@6wind.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
lib/librte_pmd_pcap/rte_eth_pcap.c
lib/librte_pmd_pcap/rte_eth_pcap.h