mirror of
https://github.com/ChronosX88/netsukuku.git
synced 2024-11-23 02:32:18 +00:00
More testing
This commit is contained in:
parent
b8c8d1142b
commit
3b039c4e55
@ -332,9 +332,6 @@ void check_excluded(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int exclude_interface(void) {
|
int exclude_interface(void) {
|
||||||
|
|
||||||
check_excluded();
|
|
||||||
|
|
||||||
char *ifs = "null1";
|
char *ifs = "null1";
|
||||||
char *old_tmp = "null2";
|
char *old_tmp = "null2";
|
||||||
char *old_tmp1 = "null3";
|
char *old_tmp1 = "null3";
|
||||||
@ -364,12 +361,14 @@ int exclude_interface(void) {
|
|||||||
|
|
||||||
if(strcmp(old_tmp, ifs) == 0) {
|
if(strcmp(old_tmp, ifs) == 0) {
|
||||||
printf("Loop finished: %s\n", ifs);
|
printf("Loop finished: %s\n", ifs);
|
||||||
|
check_excluded();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
tmp = tmp->ifa_next;
|
tmp = tmp->ifa_next;
|
||||||
server_opt.ifs[server_opt.ifs_n++]=xstrndup(ifs, IFNAMSIZ-1);
|
server_opt.ifs[server_opt.ifs_n++]=xstrndup(ifs, IFNAMSIZ-1);
|
||||||
printf("Using Interface: %s\n", ifs);
|
printf("Using Interface: %s\n", ifs);
|
||||||
|
check_excluded();
|
||||||
}
|
}
|
||||||
|
|
||||||
freeifaddrs(addrs);
|
freeifaddrs(addrs);
|
||||||
|
Loading…
Reference in New Issue
Block a user