aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2017-05-05 15:48:14 +0200
committerTobias Brunner <tobias@strongswan.org>2017-05-23 16:41:57 +0200
commit46a3f92a76b748a3086912215e14a3c9f1a5a98b (patch)
tree54cd097518ec87fa61a4ddb6b5a867dc477c078e /src/libcharon
parentcbbd34f507b789cd2d629a39baffe1c430121142 (diff)
downloadstrongswan-46a3f92a76b748a3086912215e14a3c9f1a5a98b.tar.bz2
strongswan-46a3f92a76b748a3086912215e14a3c9f1a5a98b.tar.xz
Add an option to announce support for IKE fragmentation but not sending fragments
Diffstat (limited to 'src/libcharon')
-rw-r--r--src/libcharon/config/ike_cfg.h8
-rw-r--r--src/libcharon/plugins/vici/vici_config.c1
2 files changed, 6 insertions, 3 deletions
diff --git a/src/libcharon/config/ike_cfg.h b/src/libcharon/config/ike_cfg.h
index 4d37264f6..034996f60 100644
--- a/src/libcharon/config/ike_cfg.h
+++ b/src/libcharon/config/ike_cfg.h
@@ -47,14 +47,16 @@ enum ike_version_t {
};
/**
- * Proprietary IKEv1 fragmentation
+ * Proprietary IKEv1 fragmentation and IKEv2 fragmentation
*/
enum fragmentation_t {
/** disable fragmentation */
FRAGMENTATION_NO,
- /** enable fragmentation if supported by peer */
+ /** announce support, but don't send any fragments */
+ FRAGMENTATION_ACCEPT,
+ /** enable fragmentation, if supported by peer */
FRAGMENTATION_YES,
- /** force use of fragmentation (even for the first message) */
+ /** force use of fragmentation (even for the first message for IKEv1) */
FRAGMENTATION_FORCE,
};
diff --git a/src/libcharon/plugins/vici/vici_config.c b/src/libcharon/plugins/vici/vici_config.c
index 12497ec5e..baa350784 100644
--- a/src/libcharon/plugins/vici/vici_config.c
+++ b/src/libcharon/plugins/vici/vici_config.c
@@ -1336,6 +1336,7 @@ CALLBACK(parse_frag, bool,
{
enum_map_t map[] = {
{ "yes", FRAGMENTATION_YES },
+ { "accept", FRAGMENTATION_ACCEPT },
{ "no", FRAGMENTATION_NO },
{ "force", FRAGMENTATION_FORCE },
};