]> git.saurik.com Git - apple/ipsec.git/blobdiff - ipsec-tools/racoon/main.c
ipsec-93.15.tar.gz
[apple/ipsec.git] / ipsec-tools / racoon / main.c
index 82057e7d9c8a925e1f65503f59da5259e3ac4295..0c16d83184d9d5a81b106ac898594fc59557c1c9 100644 (file)
@@ -108,7 +108,7 @@ static void restore_params __P((void));
 static void save_params __P((void));
 static void saverestore_params __P((int));
 static void cleanup_pidfile __P((void));
-static int launchedbylaunchd(void);
+int launchedbylaunchd __P((void));
 
 pid_t racoon_pid = 0;
 int print_pid = 1;     /* for racoon only */
@@ -301,6 +301,12 @@ skip:
        }
 #endif
 
+#ifdef ENABLE_HYBRID
+       if(isakmp_cfg_config.network4 && isakmp_cfg_config.pool_size == 0)
+               if ((error = isakmp_cfg_resize_pool(ISAKMP_CFG_MAX_CNX)) != 0)
+                       return error;
+#endif
+
        if (dump_config)
                dumprmconf ();
 
@@ -385,7 +391,7 @@ skip:
 }
 
 
-static int
+int
 launchedbylaunchd(){
        int             launchdlaunched = 1;
        launch_data_t checkin_response = NULL;