From 6197f02044e2fe6689b52dad0a0c75bdc0eb185b Mon Sep 17 00:00:00 2001 From: Vadim Kochan Date: Tue, 20 Sep 2016 21:37:35 +0300 Subject: 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 Signed-off-by: Vadim Kochan Signed-off-by: Tobias Klauser --- mausezahn/Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mausezahn/Makefile') diff --git a/mausezahn/Makefile b/mausezahn/Makefile index 08918b5..ca16b65 100644 --- a/mausezahn/Makefile +++ b/mausezahn/Makefile @@ -7,6 +7,10 @@ mausezahn-libs = -lcli \ mausezahn-objs = str.o \ die.o \ + dev.o \ + sock.o \ + link.o \ + sysctl.o \ xmalloc.o \ staging/layer1.o \ staging/layer2.o \ -- cgit v1.2.3-54-g00ecf