netsniff-ng: Fix tpacketv2-only capturing
commit9556751e3272308b048667e739b1baeeb5a2cbd5
authorTobias Klauser <tklauser@distanz.ch>
Mon, 29 Sep 2014 14:54:12 +0000 (29 16:54 +0200)
committerTobias Klauser <tklauser@distanz.ch>
Mon, 29 Sep 2014 14:54:12 +0000 (29 16:54 +0200)
treeaca47a76422d95c86536e995644b6226c91fe659
parent4f2c32268c348c086063d429d705022d8fdb2747
netsniff-ng: Fix tpacketv2-only capturing

We need to set up the RX ring depending on whether tpacket v3 is
available or not. Otherwise end up setting its structure up for tpacket
v3, even though only tpacket v2 is available. This should fix packet
capturing for tpacket v2 (i.e. corrupted frames in pcap).

Reported-by: Mike Reeves <luke@geekempire.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
built_in.h
netsniff-ng.c