Codebase list isatapd / 17fb7e0
Imported Upstream version 0.9.6~rc2 Bernhard Schmidt 14 years ago
3 changed file(s) with 13 addition(s) and 13 deletion(s). Raw diff Collapse all Expand all
21532153
21542154 # Define the identity of the package.
21552155 PACKAGE=isatapd
2156 VERSION=0.9.6_rc1
2156 VERSION=0.9.6_rc2
21572157
21582158
21592159 cat >>confdefs.h <<_ACEOF
00 AC_INIT(src/main.c)
1 AM_INIT_AUTOMAKE(isatapd, 0.9.6_rc1)
1 AM_INIT_AUTOMAKE(isatapd, 0.9.6_rc2)
22
33 AM_CONFIG_HEADER([config.h])
44
346346 if (verbose >= 2) {
347347 syslog(LOG_DEBUG, "still waiting for link...\n");
348348 }
349 sleep(WAIT_FOR_LINK);
350 if (go_down)
351 return 0;
349 if (sleep(WAIT_FOR_LINK) || go_down)
350 return 0; /* Interrupted by signal */
352351 saddr = get_tunnel_saddr(interface_name);
353352 } while ((go_down == 0) && (saddr == 0));
354353
529528
530529 /* Wait till we find an outgoing interface for the first entry in the PRL */
531530 saddr = wait_for_link();
531 if (go_down)
532 goto end;
533 if (saddr == 0)
534 goto begin;
532535 create_isatap_tunnel(saddr);
533536
534537 while (!go_down)
578581 break;
579582 }
580583
581 /* Try to detect link */
582 saddr_n = wait_for_link();
583 if (go_down)
584 break;
585
586 if (saddr_n != saddr || status == EXIT_ERROR_LAYER2) {
584 /* Try to detect link change */
585 saddr_n = get_tunnel_saddr(interface_name);
586
587 if (saddr_n != saddr || saddr_n == 0 || status == EXIT_ERROR_LAYER2) {
587588 syslog(LOG_WARNING, "Link change detected. Re-creating tunnel.\n");
588589 delete_isatap_tunnel();
589 saddr = saddr_n;
590 create_isatap_tunnel(saddr);
590 goto begin;
591591 }
592592 }
593593 delete_isatap_tunnel();