mz: Check device argument by ifindex instead of name prefix
commit6197f02044e2fe6689b52dad0a0c75bdc0eb185b
authorVadim Kochan <vadim4j@gmail.com>
Tue, 20 Sep 2016 18:37:35 +0000 (20 21:37 +0300)
committerTobias Klauser <tklauser@distanz.ch>
Wed, 21 Sep 2016 07:36:46 +0000 (21 09:36 +0200)
tree73f525c5743b5e7e906b9e0b9a852bdeb161168b
parent4829ae377acc30222c3866eb67082d7cf15c73f1
mz: Check device argument by ifindex instead of name prefix

Check device argument by valid ifindex instead of guessing it by
different device name prefixes like "eth", "ath", "ens", "enp".

Use __device_ifindex(...) function for this, which needs to
add few more dependencies like sock.o, link.o to the Makefile for
mausezahn.

Closes #159

Suggested-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
mausezahn/Makefile
staging/mausezahn.c