diff options
author | Tobias Brunner <tobias@strongswan.org> | 2015-06-22 17:15:33 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2015-07-28 13:27:33 +0200 |
commit | 5da31733de79baf9249b45be1132c1e2f7203f4e (patch) | |
tree | 55f5b02978b84f86856e60958ef7fc55196ca486 /src/frontends/android/jni/libandroidbridge/android_jni.h | |
parent | 1082372448d8055b9ab2cd296a011b2f71eee3fe (diff) | |
download | strongswan-5da31733de79baf9249b45be1132c1e2f7203f4e.tar.bz2 strongswan-5da31733de79baf9249b45be1132c1e2f7203f4e.tar.xz |
android: Fix kernel-net implementation on Android 4.3 and earlier
Before fwmarks were used protected sockets were bound to the outbound
interface via SO_BINDTODEVICE. This does not always seem to work well
together with our connect()/getsockname() trick if the server is covered
by the traffic selectors. Calling protect() again after disconnecting
the socket seems to help, but if there is no connectivity at all we still
get the virtual IP back (maybe protect() does not bind the socket to any
interface then).
Diffstat (limited to 'src/frontends/android/jni/libandroidbridge/android_jni.h')
-rw-r--r-- | src/frontends/android/jni/libandroidbridge/android_jni.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/frontends/android/jni/libandroidbridge/android_jni.h b/src/frontends/android/jni/libandroidbridge/android_jni.h index 99c0bc2cd..b08670f7e 100644 --- a/src/frontends/android/jni/libandroidbridge/android_jni.h +++ b/src/frontends/android/jni/libandroidbridge/android_jni.h @@ -54,6 +54,8 @@ typedef enum { ANDROID_ICE_CREAM_SANDWICH = 14, ANDROID_ICE_CREAM_SANDWICH_MR1 = 15, ANDROID_JELLY_BEAN = 16, + ANDROID_JELLY_BEAN_MR1 = 17, + ANDROID_JELLY_BEAN_MR2 = 18, } android_sdk_version_t; /** |