diff --git a/Source/charon/daemon.c b/Source/charon/daemon.c index 75b3f9724..8636f0b46 100644 --- a/Source/charon/daemon.c +++ b/Source/charon/daemon.c @@ -217,7 +217,7 @@ static void register_signals() static status_t initialize_globals() { /* initialize global object */ - global_socket = socket_create(4500); + global_socket = socket_create(IKEV2_UDP_PORT); global_ike_sa_manager = ike_sa_manager_create(); global_job_queue = job_queue_create(); global_event_queue = event_queue_create(); diff --git a/Source/charon/daemon.h b/Source/charon/daemon.h index 150b145af..d1df42f88 100644 --- a/Source/charon/daemon.h +++ b/Source/charon/daemon.h @@ -29,5 +29,7 @@ #define NUMBER_OF_WORKING_THREADS 4 +#define IKEV2_UDP_PORT 500 + #endif /*DAEMON_H_*/