diff options
author | Tobias Brunner <tobias@strongswan.org> | 2014-07-16 13:54:57 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2014-07-22 11:10:36 +0200 |
commit | 36aab70ab068a8552cf3bc4f80187fc178a2aaf7 (patch) | |
tree | 317ed74400b5cca112a6deca9be39df4fab8524d /src/frontends/android/jni/libandroidbridge/vpnservice_builder.h | |
parent | cc1712a8f4656f0e2417da44f3b27385e71ffa17 (diff) | |
download | strongswan-36aab70ab068a8552cf3bc4f80187fc178a2aaf7.tar.bz2 strongswan-36aab70ab068a8552cf3bc4f80187fc178a2aaf7.tar.xz |
android: Add method to BuilderAdapter to re-establish without DNS-related data
Non-DNS data is cached in the BuilderAdapter so the TUN device can be
recreated easily (since the CHILD_SA is gone we couldn't actually gather
that information).
Diffstat (limited to 'src/frontends/android/jni/libandroidbridge/vpnservice_builder.h')
-rw-r--r-- | src/frontends/android/jni/libandroidbridge/vpnservice_builder.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/frontends/android/jni/libandroidbridge/vpnservice_builder.h b/src/frontends/android/jni/libandroidbridge/vpnservice_builder.h index 209090896..08c436da6 100644 --- a/src/frontends/android/jni/libandroidbridge/vpnservice_builder.h +++ b/src/frontends/android/jni/libandroidbridge/vpnservice_builder.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2012 Tobias Brunner + * Copyright (C) 2012-2014 Tobias Brunner * Copyright (C) 2012 Giuliano Grassi * Copyright (C) 2012 Ralf Sager * Hochschule fuer Technik Rapperswil @@ -78,6 +78,13 @@ struct vpnservice_builder_t { int (*establish)(vpnservice_builder_t *this); /** + * Build the TUN device without DNS related data + * + * @return the TUN file descriptor, -1 if failed + */ + int (*establish_no_dns)(vpnservice_builder_t *this); + + /** * Destroy a vpnservice_builder */ void (*destroy)(vpnservice_builder_t *this); |