Browse Source

Sorry, I should have read more about goto, I understand now, And it should work now.

MissValeska 10 years ago
parent
commit
a7bbd6dff7
1 changed files with 2 additions and 6 deletions
  1. 2
    6
      src/netsukuku.c

+ 2
- 6
src/netsukuku.c View File

@@ -337,22 +337,18 @@ void exclude_interface(void) {
337 337
                             if(tmp->ifa_addr && tmp->ifa_addr->sa_family == AF_PACKET)
338 338
                                     ifs = tmp->ifa_name;
339 339
                             
340
-                            printf("One");
341
-                            
342
-                            goto Check_Active;
343
-                            
344
-                            printf("Two");
345
-                            
346 340
                                 if(strncmp(ifs, "lo", 2) == 0 || strncmp(ifs, "tunl0", 5) == 0 || strncmp(ifs, "tunl1", 5) == 0 || strcmp(ifs, optarg) == 0)
347 341
                                     goto Check_Active;
348 342
                                     
349 343
                             Check_Active:
344
+                            
350 345
                             a_ifs = ifs;
351 346
                             if(a_ifs->ifr_name != IFF_UP) {
352 347
                                 tmp = tmp->ifa_next;
353 348
                                 if(tmp->ifa_addr && tmp->ifa_addr->sa_family == AF_PACKET)
354 349
                                             ifs = tmp->ifa_name;
355 350
                             }
351
+                            
356 352
                             tmp = tmp->ifa_next;
357 353
 			    if(strcmp(old_tmp, ifs) == 0)
358 354
 					break;

Loading…
Cancel
Save