More testing

This commit is contained in:
MissValeska 2014-05-26 16:31:35 -07:00
parent b8c8d1142b
commit 3b039c4e55

View File

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