diff options
author | Chia-chi Yeh <chiachi@android.com> | 2009-07-30 17:23:56 +0800 |
---|---|---|
committer | Chia-chi Yeh <chiachi@android.com> | 2009-07-30 17:23:56 +0800 |
commit | 9d271b685df5830e92a789119fe9b908da2f6c78 (patch) | |
tree | 999fe5724ee8e361bbbb792e9d0fb68b4f2b65eb /main.c | |
parent | 5cbb57af3a64593fc4bfbb2c42c3d24553e8bae4 (diff) | |
download | ipsec-tools-9d271b685df5830e92a789119fe9b908da2f6c78.tar.gz |
ipsec-tools: Minor performance tuning.
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -150,34 +150,34 @@ int main(int argc, char **argv) unsigned char code = argc - 1; #endif - do_plog(LLV_INFO, "ipsec-tools 0.7.2 (http://ipsec-tools.sf.net)\n"); - - atexit(terminated); signal(SIGHUP, terminate); signal(SIGINT, terminate); signal(SIGTERM, terminate); signal(SIGPIPE, SIG_IGN); + setup(argc, argv); + + do_plog(LLV_INFO, "ipsec-tools 0.7.2 (http://ipsec-tools.sf.net)\n"); + atexit(terminated); eay_init(); oakley_dhinit(); compute_vendorids(); sched_init(); - setup(argc, argv); if (pfkey_init() < 0 || isakmp_init() < 0) { exit(1); } +#ifdef ENABLE_NATT + natt_keepalive_init(); +#endif + #ifdef ANDROID_CHANGES bind_interface(); send(control, &code, 1, 0); setuid(AID_VPN); #endif -#ifdef ENABLE_NATT - natt_keepalive_init(); -#endif - FD_ZERO(&fdset); FD_SET(lcconf->sock_pfkey, &fdset); fdset_size = lcconf->sock_pfkey; |