From 1ed22670fa459068be40b1d20c6af4ee124c5369 Mon Sep 17 00:00:00 2001 From: vanhu Date: Wed, 6 Jun 2007 09:47:29 +0000 Subject: [PATCH] From Jianli Liu: speed up interfaces update when they change. --- crypto/dist/ipsec-tools/src/racoon/session.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/crypto/dist/ipsec-tools/src/racoon/session.c b/crypto/dist/ipsec-tools/src/racoon/session.c index 6544e4fd2004..cf6589223bc9 100644 --- a/crypto/dist/ipsec-tools/src/racoon/session.c +++ b/crypto/dist/ipsec-tools/src/racoon/session.c @@ -1,4 +1,4 @@ -/* $NetBSD: session.c,v 1.7 2006/09/30 16:14:18 manu Exp $ */ +/* $NetBSD: session.c,v 1.8 2007/06/06 09:47:29 vanhu Exp $ */ /* $KAME: session.c,v 1.32 2003/09/24 02:01:17 jinmei Exp $ */ @@ -228,8 +228,9 @@ session(void) if (lcconf->rtsock >= 0 && FD_ISSET(lcconf->rtsock, &rfds)) { if (update_myaddrs() && lcconf->autograbaddr) - sched_new(5, check_rtsock, NULL); - initfds(); + check_rtsock(NULL); + else + initfds(); } } }