mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-17 15:25:35 +00:00
4c630e0437
- Previous android java and jni code updated to work, but with much love still needed to make it work nicely, e.g. handling when the VPN is turned off. - DNS handling refactored to allow android to intercept and handle DNS requests as we can't set the system DNS to use a high port (and apparently Chrome ignores system DNS settings anyway) - add packet router structure to allow separate handling of specific intercepted traffic, e.g. UDP traffic to port 53 gets handled by our DNS handler rather than being naively forwarded as exit traffic. - For now, android lokinet is exit-only and hard-coded to use exit.loki as its exit. The exit will be configurable before release, but allowing to not use exit-only mode is more of a challenge. - some old gitignore remnants which were matching to things we don't want them to (and are no longer relevant) removed - some minor changes to CI configuration
56 lines
1.5 KiB
C
56 lines
1.5 KiB
C
/* DO NOT EDIT THIS FILE - it is machine generated */
|
|
#include <jni.h>
|
|
/* Header for class network_loki_lokinet_LokinetConfig */
|
|
|
|
#ifndef _Included_network_loki_lokinet_LokinetConfig
|
|
#define _Included_network_loki_lokinet_LokinetConfig
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
/*
|
|
* Class: network_loki_lokinet_LokinetConfig
|
|
* Method: Obtain
|
|
* Signature: (Ljava/lang/String;)Ljava/nio/ByteBuffer;
|
|
*/
|
|
JNIEXPORT jobject JNICALL
|
|
Java_network_loki_lokinet_LokinetConfig_Obtain(JNIEnv*, jclass, jstring);
|
|
|
|
/*
|
|
* Class: network_loki_lokinet_LokinetConfig
|
|
* Method: Free
|
|
* Signature: (Ljava/nio/ByteBuffer;)V
|
|
*/
|
|
JNIEXPORT void JNICALL
|
|
Java_network_loki_lokinet_LokinetConfig_Free(JNIEnv*, jclass, jobject);
|
|
|
|
/*
|
|
* Class: network_loki_lokinet_LokinetConfig
|
|
* Method: Load
|
|
* Signature: ()Z
|
|
*/
|
|
JNIEXPORT jboolean JNICALL
|
|
Java_network_loki_lokinet_LokinetConfig_Load(JNIEnv*, jobject);
|
|
|
|
/*
|
|
* Class: network_loki_lokinet_LokinetConfig
|
|
* Method: Save
|
|
* Signature: ()Z
|
|
*/
|
|
JNIEXPORT jboolean JNICALL
|
|
Java_network_loki_lokinet_LokinetConfig_Save(JNIEnv*, jobject);
|
|
|
|
/*
|
|
* Class: network_loki_lokinet_LokinetConfig
|
|
* Method: AddDefaultValue
|
|
* Signature: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
|
|
*/
|
|
JNIEXPORT void JNICALL
|
|
Java_network_loki_lokinet_LokinetConfig_AddDefaultValue(
|
|
JNIEnv*, jobject, jstring, jstring, jstring);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif
|