diff options
Diffstat (limited to 'sbin/ipsec/photurisd/schedule.c')
-rw-r--r-- | sbin/ipsec/photurisd/schedule.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/sbin/ipsec/photurisd/schedule.c b/sbin/ipsec/photurisd/schedule.c index a0749558ba3..98973b5afb4 100644 --- a/sbin/ipsec/photurisd/schedule.c +++ b/sbin/ipsec/photurisd/schedule.c @@ -1,5 +1,5 @@ /* - * Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de> + * Copyright 1997,1998 Niels Provos <provos@physnet.uni-hamburg.de> * All rights reserved. * * Parts derived from code by Angelos D. Keromytis, kermit@forthnet.gr @@ -35,7 +35,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: schedule.c,v 1.6 1998/03/04 11:43:49 provos Exp $"; +static char rcsid[] = "$Id: schedule.c,v 1.7 1998/05/18 21:25:35 provos Exp $"; #endif #define _SCHEDULE_C_ @@ -233,6 +233,9 @@ schedule_process(int sock) if (st->phase == COOKIE_REQUEST && st->resource == 0) { log_error(0, "no anwser for cookie request to %s:%d", st->address, st->port); +#ifdef IPSEC + kernel_notify_result(st, NULL, 0); +#endif break; } else if(st->phase == COOKIE_REQUEST) { /* Try again with updated counters */ @@ -280,8 +283,8 @@ schedule_process(int sock) } #ifdef DEBUG - printf("Resending packet type %d, length %d.\n", - st->phase, st->packetlen); + printf("Resending packet to %s type %d, length %d.\n", + st->address, st->phase, st->packetlen); #endif tmp->tm = tm + retrans_timeout; } @@ -374,7 +377,7 @@ schedule_process(int sock) spi_insert(nspi); schedule_insert(UPDATE, st->olifetime/2, nspi->SPI, SPI_SIZE); #ifdef IPSEC - kernel_insert_spi(nspi); + kernel_insert_spi(st, nspi); #endif break; default: |