diff options
author | Tobias Brunner <tobias@strongswan.org> | 2017-05-05 15:48:14 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2017-05-23 16:41:57 +0200 |
commit | 46a3f92a76b748a3086912215e14a3c9f1a5a98b (patch) | |
tree | 54cd097518ec87fa61a4ddb6b5a867dc477c078e /src/libcharon | |
parent | cbbd34f507b789cd2d629a39baffe1c430121142 (diff) | |
download | strongswan-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.h | 8 | ||||
-rw-r--r-- | src/libcharon/plugins/vici/vici_config.c | 1 |
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 }, }; |