pcap: save if_index of the bound device
authorMats Liljegren <mats.liljegren@enea.com>
Fri, 24 Jan 2014 13:24:15 +0000 (14:24 +0100)
committerDavid Marchand <david.marchand@6wind.com>
Wed, 26 Feb 2014 10:07:28 +0000 (11:07 +0100)
commita02aa29dec026741a6a2d500823a3bfdf344c3fe
treed00b1c984969a7dced17d65dadf0ba28b2f8696b
parent60191b8919ef630a0fd50c32a734dd04802ccbfc
pcap: save if_index of the bound device

Use command line parameters to get the name of the interface.
This name is converted into if_index, which is provided as
device info.

Signed-off-by: Mats Liljegren <mats.liljegren@enea.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