mirror of
https://github.com/ChronosX88/netsukuku.git
synced 2024-11-22 10:12:18 +00:00
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:
parent
b16541893c
commit
b8c8d1142b
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user