From a2e70ae5b06ac6fa09cce3848c2ed795967b174f Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Fri, 9 Aug 2013 12:04:49 +0200 Subject: dev: Integrate `promisc' module into `dev' module Since entering/leaving promiscuous mode also is a device specific function and all users of the `promisc' module also use `dev', integrate it there. Also rename the functions to have a `device_' prefix like the other functions in the module. Signed-off-by: Tobias Klauser --- ifpps.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'ifpps.c') diff --git a/ifpps.c b/ifpps.c index 9344625..b2d3e49 100644 --- a/ifpps.c +++ b/ifpps.c @@ -27,7 +27,6 @@ #include "link.h" #include "xmalloc.h" #include "ioops.h" -#include "promisc.h" #include "cpus.h" #include "config.h" #include "built_in.h" @@ -1383,10 +1382,10 @@ int main(int argc, char **argv) cpu_hits = xzmalloc(cpus * sizeof(*cpu_hits)); if (promisc) - ifflags = enter_promiscuous_mode(ifname); + ifflags = device_enter_promiscuous_mode(ifname); ret = func_main(ifname, interval, top_cpus, suppress_warnings); if (promisc) - leave_promiscuous_mode(ifname, ifflags); + device_leave_promiscuous_mode(ifname, ifflags); stats_release(&stats_old); stats_release(&stats_new); -- cgit v1.2.3-54-g00ecf