]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
android: Increase fragment size
authorTobias Brunner <tobias@strongswan.org>
Thu, 6 Nov 2014 16:05:47 +0000 (17:05 +0100)
committerTobias Brunner <tobias@strongswan.org>
Thu, 6 Nov 2014 16:05:47 +0000 (17:05 +0100)
We use the same value we use as MTU on TUN devices.

src/frontends/android/jni/libandroidbridge/charonservice.c

index e6c9126d7ad471c377f058caf815a747cd752c88..b83d8278a93753b8792f56a69fda4a8e0dfde013 100644 (file)
@@ -44,6 +44,7 @@
 #define ANDROID_RETRASNMIT_TRIES 3
 #define ANDROID_RETRANSMIT_TIMEOUT 2.0
 #define ANDROID_RETRANSMIT_BASE 1.4
+#define ANDROID_FRAGMENT_SIZE 1400
 
 typedef struct private_charonservice_t private_charonservice_t;
 
@@ -465,6 +466,8 @@ static void set_options(char *logfile)
                                        "charon.retransmit_timeout", ANDROID_RETRANSMIT_TIMEOUT);
        lib->settings->set_double(lib->settings,
                                        "charon.retransmit_base", ANDROID_RETRANSMIT_BASE);
+       lib->settings->set_int(lib->settings,
+                                       "charon.fragment_size", ANDROID_FRAGMENT_SIZE);
        lib->settings->set_bool(lib->settings,
                                        "charon.close_ike_on_child_failure", TRUE);
        /* setting the source address breaks the VpnService.protect() function which