From b8c8d1142b4401b00dbd01edab3cf176e36c7e0d Mon Sep 17 00:00:00 2001 From: MissValeska Date: Mon, 26 May 2014 02:28:30 -0700 Subject: [PATCH] Added the beginnings of a function to check if a second exclude argument is excluding something that was already added into netsukuku's interface list, And removes it. --- src/netsukuku.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/netsukuku.c b/src/netsukuku.c index 220bba9..f4020f5 100644 --- a/src/netsukuku.c +++ b/src/netsukuku.c @@ -324,7 +324,17 @@ void free_server_opt(void) xfree(server_opt.ifs[i]); } +void check_excluded(void) { + + printf("Number of Interfaces in Use: %d\n", server_opt.ifs_n); + printf("Interface names in Use: %s", server_opt.ifs); + +} + int exclude_interface(void) { + + check_excluded(); + char *ifs = "null1"; char *old_tmp = "null2"; char *old_tmp1 = "null3";