mirror of
https://github.com/ChronosX88/netsukuku.git
synced 2024-12-22 00:41:46 +00:00
Sorry, I should have read more about goto, I understand now, And it should work now.
This commit is contained in:
parent
b9e764d89d
commit
a7bbd6dff7
@ -337,22 +337,18 @@ void exclude_interface(void) {
|
||||
if(tmp->ifa_addr && tmp->ifa_addr->sa_family == AF_PACKET)
|
||||
ifs = tmp->ifa_name;
|
||||
|
||||
printf("One");
|
||||
|
||||
goto Check_Active;
|
||||
|
||||
printf("Two");
|
||||
|
||||
if(strncmp(ifs, "lo", 2) == 0 || strncmp(ifs, "tunl0", 5) == 0 || strncmp(ifs, "tunl1", 5) == 0 || strcmp(ifs, optarg) == 0)
|
||||
goto Check_Active;
|
||||
|
||||
Check_Active:
|
||||
|
||||
a_ifs = ifs;
|
||||
if(a_ifs->ifr_name != IFF_UP) {
|
||||
tmp = tmp->ifa_next;
|
||||
if(tmp->ifa_addr && tmp->ifa_addr->sa_family == AF_PACKET)
|
||||
ifs = tmp->ifa_name;
|
||||
}
|
||||
|
||||
tmp = tmp->ifa_next;
|
||||
if(strcmp(old_tmp, ifs) == 0)
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user