[Openswan dev] ikeping waits milliseconds instead of seconds

Mark-Andre Hopf mhopf at innominate.com
Mon Mar 5 05:03:18 EST 2007


ikeping waits milliseconds instead of seconds, the following patch
should fix it:

--- ikeping.c.orig	2007-03-05 10:21:08.000000000 +0100
+++ ikeping.c	2007-03-05 10:21:36.000000000 +0100
@@ -310,7 +310,7 @@
   pfamily=PF_INET;
   lport=500;
   dport=500;
-  waitTime=10;
+  waitTime=10*1000;
   verbose=0;
   natt=0;
   listen_only=0;
@@ -369,6 +369,7 @@
 		      optarg);
 	      exit(1);
 	  }
+	  waitTime*=1000;
 	  continue;
 	  
       case 'b':

-- 
mark-andre.hopf at innominate.com
senior software engineer           innominate security technologies AG
development                             protecting industrial networks
tel: +49.30.6392-3284  fax: -3307                http://innominate.com


More information about the Dev mailing list