pcap: fix captured frame length
authorDror Birkman <dror.birkman@lightcyber.com>
Thu, 28 Jan 2016 11:09:50 +0000 (13:09 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 16 Mar 2016 18:05:47 +0000 (19:05 +0100)
commitc6fb0e55585206a89f6db396de860e6e844cad06
treedf59b4bb2f0e13318f4cfe87fb8d6ecd7fcbbde8
parente6ee4db01b4d2a4f9a52a3d9297912f6c6e946d0
pcap: fix captured frame length

The actual captured length is header.caplen, whereas header.len is
the original length on the wire.

Fixes: 4c173302c307 ("pcap: add new driver")

Signed-off-by: Dror Birkman <dror.birkman@lightcyber.com>
Acked-by: Nicolás Pernas Maradei <nicolas.pernas.maradei@emutex.com>
drivers/net/pcap/rte_eth_pcap.c