mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-15 12:13:24 +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
87 lines
2.2 KiB
C
87 lines
2.2 KiB
C
/* DO NOT EDIT THIS FILE - it is machine generated */
|
|
#include <jni.h>
|
|
/* Header for class network_loki_lokinet_LokinetDaemon */
|
|
|
|
#ifndef _Included_network_loki_lokinet_LokinetDaemon
|
|
#define _Included_network_loki_lokinet_LokinetDaemon
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
/*
|
|
* Class: network_loki_lokinet_LokinetDaemon
|
|
* Method: Obtain
|
|
* Signature: ()Ljava/nio/ByteBuffer;
|
|
*/
|
|
JNIEXPORT jobject JNICALL
|
|
Java_network_loki_lokinet_LokinetDaemon_Obtain(JNIEnv*, jclass);
|
|
|
|
/*
|
|
* Class: network_loki_lokinet_LokinetDaemon
|
|
* Method: Free
|
|
* Signature: (Ljava/nio/ByteBuffer;)V
|
|
*/
|
|
JNIEXPORT void JNICALL
|
|
Java_network_loki_lokinet_LokinetDaemon_Free(JNIEnv*, jclass, jobject);
|
|
|
|
/*
|
|
* Class: network_loki_lokinet_LokinetDaemon
|
|
* Method: Configure
|
|
* Signature: (Lnetwork/loki/lokinet/LokinetConfig;)Z
|
|
*/
|
|
JNIEXPORT jboolean JNICALL
|
|
Java_network_loki_lokinet_LokinetDaemon_Configure(JNIEnv*, jobject, jobject);
|
|
|
|
/*
|
|
* Class: network_loki_lokinet_LokinetDaemon
|
|
* Method: Mainloop
|
|
* Signature: ()I
|
|
*/
|
|
JNIEXPORT jint JNICALL
|
|
Java_network_loki_lokinet_LokinetDaemon_Mainloop(JNIEnv*, jobject);
|
|
|
|
/*
|
|
* Class: network_loki_lokinet_LokinetDaemon
|
|
* Method: IsRunning
|
|
* Signature: ()Z
|
|
*/
|
|
JNIEXPORT jboolean JNICALL
|
|
Java_network_loki_lokinet_LokinetDaemon_IsRunning(JNIEnv*, jobject);
|
|
|
|
/*
|
|
* Class: network_loki_lokinet_LokinetDaemon
|
|
* Method: Stop
|
|
* Signature: ()Z
|
|
*/
|
|
JNIEXPORT jboolean JNICALL
|
|
Java_network_loki_lokinet_LokinetDaemon_Stop(JNIEnv*, jobject);
|
|
|
|
/*
|
|
* Class: network_loki_lokinet_LokinetDaemon
|
|
* Method: InjectVPNFD
|
|
* Signature: ()V
|
|
*/
|
|
JNIEXPORT void JNICALL
|
|
Java_network_loki_lokinet_LokinetDaemon_InjectVPNFD(JNIEnv*, jobject);
|
|
|
|
/*
|
|
* Class: network_loki_lokinet_LokinetDaemon
|
|
* Method: GetUDPSocket
|
|
* Signature: ()I
|
|
*/
|
|
JNIEXPORT jint JNICALL
|
|
Java_network_loki_lokinet_LokinetDaemon_GetUDPSocket(JNIEnv*, jobject);
|
|
|
|
/*
|
|
* Class: network_loki_lokinet_LokinetDaemon
|
|
* Method: DetectFreeRange
|
|
* Signature: ()Ljava/lang/String;
|
|
*/
|
|
JNIEXPORT jstring JNICALL
|
|
Java_network_loki_lokinet_LokinetDaemon_DetectFreeRange(JNIEnv*, jclass);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif
|