diff options
author | Tobias Brunner <tobias@strongswan.org> | 2012-02-13 18:04:04 +0100 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2012-08-08 15:07:43 +0200 |
commit | e7ea057fd2da33ff5b55e1cebb3b5b7e361a43d7 (patch) | |
tree | 14fe49f6b232070a56b4a8ed6d9db9b7240b7ad6 /src/libcharon/daemon.h | |
parent | 73940eb71235f8ff8c3490d9f607db9c7defd19e (diff) | |
download | strongswan-e7ea057fd2da33ff5b55e1cebb3b5b7e361a43d7.tar.bz2 strongswan-e7ea057fd2da33ff5b55e1cebb3b5b7e361a43d7.tar.xz |
Make the UDP ports charon listens for packets on (and uses as source ports) configurable.
Diffstat (limited to 'src/libcharon/daemon.h')
-rw-r--r-- | src/libcharon/daemon.h | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/src/libcharon/daemon.h b/src/libcharon/daemon.h index f42a9f078..b67de77b8 100644 --- a/src/libcharon/daemon.h +++ b/src/libcharon/daemon.h @@ -178,16 +178,31 @@ typedef struct daemon_t daemon_t; #define DEFAULT_THREADS 16 /** - * UDP Port on which the daemon will listen for incoming traffic. + * Primary UDP port used by IKE. */ #define IKEV2_UDP_PORT 500 /** - * UDP Port to which the daemon will float to if NAT is detected. + * UDP port defined for use in case a NAT is detected. */ #define IKEV2_NATT_PORT 4500 /** + * UDP port on which the daemon will listen for incoming traffic (also used as + * source port for outgoing traffic). + */ +#ifndef CHARON_UDP_PORT +#define CHARON_UDP_PORT IKEV2_UDP_PORT +#endif + +/** + * UDP port used by the daemon in case a NAT is detected. + */ +#ifndef CHARON_NATT_PORT +#define CHARON_NATT_PORT IKEV2_NATT_PORT +#endif + +/** * Main class of daemon, contains some globals. */ struct daemon_t { |