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.

This commit is contained in:
MissValeska 2014-05-26 02:28:30 -07:00
parent b16541893c
commit b8c8d1142b

View File

@ -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";