aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/plugins/socket_dynamic/socket_dynamic_socket.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2014-10-10 09:35:27 +0200
committerTobias Brunner <tobias@strongswan.org>2014-10-10 09:35:27 +0200
commitcb9374009f29d3bc6bce83d2c51addc5d3019cc6 (patch)
treed22c401edf9f96f4b03786e727d51e98953fbb18 /src/libcharon/plugins/socket_dynamic/socket_dynamic_socket.c
parent7fb363c8f73bb2d701826e947fb7d800e9690190 (diff)
parent1836c1845b3ca7bff79cd73b2a113c3d0f21fc36 (diff)
downloadstrongswan-cb9374009f29d3bc6bce83d2c51addc5d3019cc6.tar.bz2
strongswan-cb9374009f29d3bc6bce83d2c51addc5d3019cc6.tar.xz
Merge branch 'ikev2-fragmentation'
This adds support for IKEv2 fragmentation as per RFC 7383.
Diffstat (limited to 'src/libcharon/plugins/socket_dynamic/socket_dynamic_socket.c')
-rw-r--r--src/libcharon/plugins/socket_dynamic/socket_dynamic_socket.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/libcharon/plugins/socket_dynamic/socket_dynamic_socket.c b/src/libcharon/plugins/socket_dynamic/socket_dynamic_socket.c
index 3161a709f..b82a69e1b 100644
--- a/src/libcharon/plugins/socket_dynamic/socket_dynamic_socket.c
+++ b/src/libcharon/plugins/socket_dynamic/socket_dynamic_socket.c
@@ -42,9 +42,6 @@
#include <threading/rwlock.h>
#include <collections/hashtable.h>
-/* Maximum size of a packet */
-#define MAX_PACKET 10000
-
/* these are not defined on some platforms */
#ifndef SOL_IP
#define SOL_IP IPPROTO_IP
@@ -668,7 +665,7 @@ socket_dynamic_socket_t *socket_dynamic_socket_create()
},
.lock = rwlock_create(RWLOCK_TYPE_DEFAULT),
.max_packet = lib->settings->get_int(lib->settings,
- "%s.max_packet", MAX_PACKET, lib->ns),
+ "%s.max_packet", PACKET_MAX_DEFAULT, lib->ns),
);
if (pipe(this->notify) != 0)