summaryrefslogtreecommitdiff
path: root/java
AgeCommit message (Collapse)Author
2023-08-16ANDROID-96: Simplify and use return code from node_init directlyBrenton Bostick
2023-08-16Check if null is passed to VirtualNetworkConfig.equals and name fixesBrenton Bostick
2023-08-16Basic cleanupsBrenton Bostick
2023-03-09actual fix for ANDROID-56: crash inside newNetworkConfigBrenton Bostick
cast all arguments to varargs functions as good style
2023-03-09Revert "temp fix for ANDROID-56: crash inside newNetworkConfig from too many ↵Brenton Bostick
args" This reverts commit dd627cd7f44ad623a110bb14f72d0bea72a09e30.
2023-03-071.10.4 merge into main (#1893)Adam Ierymenko
* add note about forceTcpRelay * Create a sample systemd unit for tcp proxy * set gitattributes for rust & cargo so hashes dont conflict on Windows * Revert "set gitattributes for rust & cargo so hashes dont conflict on Windows" This reverts commit 032dc5c108195f6bbc2e224f00da5b785df4b7f9. * Turn off autocrlf for rust source Doesn't appear to play nice well when it comes to git and vendored cargo package hashes * Fix #1883 (#1886) Still unknown as to why, but the call to `nc->GetProperties()` can fail when setting a friendly name on the Windows virtual ethernet adapter. Ensure that `ncp` is not null before continuing and accessing the device GUID. * Don't vendor packages for zeroidc (#1885) * Added docker environment way to join networks (#1871) * add StringUtils * fix headers use recommended headers and remove unused headers * move extern "C" only JNI functions need to be exported * cleanup * fix ANDROID-50: RESULT_ERROR_BAD_PARAMETER typo * fix typo in log message * fix typos in JNI method signatures * fix typo * fix ANDROID-51: fieldName is uninitialized * fix ANDROID-35: memory leak * fix missing DeleteLocalRef in loops * update to use unique error codes * add GETENV macro * add LOG_TAG defines * ANDROID-48: add ZT_jnicache.cpp * ANDROID-48: use ZT_jnicache.cpp and remove ZT_jnilookup.cpp and ZT_jniarray.cpp * add Event.fromInt * add PeerRole.fromInt * add ResultCode.fromInt * fix ANDROID-36: issues with ResultCode * add VirtualNetworkConfigOperation.fromInt * fix ANDROID-40: VirtualNetworkConfigOperation out-of-sync with ZT_VirtualNetworkConfigOperation enum * add VirtualNetworkStatus.fromInt * fix ANDROID-37: VirtualNetworkStatus out-of-sync with ZT_VirtualNetworkStatus enum * add VirtualNetworkType.fromInt * make NodeStatus a plain data class * fix ANDROID-52: synchronization bug with nodeMap * Node init work: separate Node construction and init * add Node.toString * make PeerPhysicalPath a plain data class * remove unused PeerPhysicalPath.fixed * add array functions * make Peer a plain data class * make Version a plain data class * fix ANDROID-42: copy/paste error * fix ANDROID-49: VirtualNetworkConfig.equals is wrong * reimplement VirtualNetworkConfig.equals * reimplement VirtualNetworkConfig.compareTo * add VirtualNetworkConfig.hashCode * make VirtualNetworkConfig a plain data class * remove unused VirtualNetworkConfig.enabled * reimplement VirtualNetworkDNS.equals * add VirtualNetworkDNS.hashCode * make VirtualNetworkDNS a plain data class * reimplement VirtualNetworkRoute.equals * reimplement VirtualNetworkRoute.compareTo * reimplement VirtualNetworkRoute.toString * add VirtualNetworkRoute.hashCode * make VirtualNetworkRoute a plain data class * add isSocketAddressEmpty * add addressPort * add fromSocketAddressObject * invert logic in a couple of places and return early * newInetAddress and newInetSocketAddress work allow newInetSocketAddress to return NULL if given empty address * fix ANDROID-38: stack corruption in onSendPacketRequested * use GETENV macro * JniRef work JniRef does not use callbacks struct, so remove fix NewGlobalRef / DeleteGlobalRef mismatch * use PRId64 macros * switch statement work * comments and logging * Modifier 'public' is redundant for interface members * NodeException can be made a checked Exception * 'NodeException' does not define a 'serialVersionUID' field * 'finalize()' should not be overridden this is fine to do because ZeroTierOneService calls close() when it is done * error handling, error reporting, asserts, logging * simplify loadLibrary * rename Node.networks -> Node.networkConfigs * Windows file permissions fix (#1887) * Allow macOS interfaces to use multiple IP addresses (#1879) Co-authored-by: Sean OMeara <[email protected]> Co-authored-by: Grant Limberg <[email protected]> * Fix condition where full HELLOs might not be sent when necessary (#1877) Co-authored-by: Grant Limberg <[email protected]> * 1.10.4 version bumps * Add security policy to repo (#1889) * [+] add e2k64 arch (#1890) * temp fix for ANDROID-56: crash inside newNetworkConfig from too many args * 1.10.4 release notes --------- Co-authored-by: travis laduke <[email protected]> Co-authored-by: Grant Limberg <[email protected]> Co-authored-by: Grant Limberg <[email protected]> Co-authored-by: Leonardo Amaral <[email protected]> Co-authored-by: Brenton Bostick <[email protected]> Co-authored-by: Sean OMeara <[email protected]> Co-authored-by: Joseph Henry <[email protected]> Co-authored-by: Roman Peshkichev <[email protected]>
2023-01-11fix typos (#1843)Brenton Bostick
2022-12-05Merge pull request #1807 from zerotier/cleanup/typosGrant Limberg
fix typos
2022-12-05fix typosBrenton Bostick
2022-12-05Migrate from ndk-build to CMakeBrenton Bostick
2022-12-05Remove unused flags for arm64-v8aBrenton Bostick
Through using ndk-build, -Wno-unused-command-line-argument is passed in somewhere in the pipeline and hides this warning. The warning can be turned on with: APP_CPPFLAGS := -Wunused-command-line-argument ... and then when building, you can see: C/C++: clang++: warning: argument unused during compilation: '-mfloat-abi=softfp' [-Wunused-command-line-argument] C/C++: clang++: warning: argument unused during compilation: '-mfpu=neon' [-Wunused-command-line-argument] C/C++: clang++: warning: argument unused during compilation: '-maes' [-Wunused-command-line-argument] These are unused because both floating-point and NEON are required in all standard ARMv8 implementations. [1] [2] [1] https://developer.arm.com/documentation/den0024/a/AArch64-Floating-point-and-NEON [2] https://stackoverflow.com/a/29891469
2022-12-05Fix build problem related to unified headersBrenton Bostick
Since NDKr15 (released 2017), unified headers are used by default [1] Remove -isystem option that was passing bad values to command-line. The actual value being passed to command-line was: ``` -isystem DK/sysroot/usr/include/RIPLE ``` because of using $NDK and $TRIPLE instead of $(NDK) and $(TRIPLE) But regardless, $NDK and $TRIPLE were never actually defined values and were just place-holders mentioned in [1] [1] https://android.googlesource.com/platform/ndk/+/ndk-release-r16/docs/UnifiedHeaders.md
2022-12-01Fix warning: suggest braces around initialization of subobjectBrenton Bostick
2022-11-28fix typos in codeBrenton Bostick
2022-11-28fix typos in comments and stringsBrenton Bostick
2022-11-09Fun times in ~~cleveland~~ NDK-landGrant Limberg
2022-03-04update JNI to add new status codeGrant Limberg
2021-10-28remove BondController.cpp from android makefileGrant Limberg
2020-11-24another comparison fixGrant Limberg
2020-11-24fix dns equality check in AndroidGrant Limberg
2020-10-21freaking JNIGrant Limberg
2020-10-21forgot accessorsGrant Limberg
2020-10-21JNI for dns configurationGrant Limberg
2020-10-08Merge branch 'dev'Adam Ierymenko
2020-09-22more magic incantations to make crypto extensions work on Android/ARM64Grant Limberg
2020-09-22AES-NI enabled for Android ARM64Grant Limberg
2020-09-21Enable AES-NI on Android X86-64Grant Limberg
Need to find the magic incantation to enable it on ARM64 still
2020-06-18android changesGrant Limberg
2020-05-18Add new ZT_ result codes that were addedGrant Limberg
2020-05-14fix equals() methodsGrant Limberg
2019-04-22pt 2Grant Limberg
2019-04-22Make things compile with Android NDK againGrant Limberg
2018-02-12some JNI error checkingGrant Limberg
2018-02-07silence LOGV and LOGD in release builds for androidGrant Limberg
2017-10-03Update Android NDK with uint64_t -> int64_t changesGrant Limberg
2017-07-17Wire up PortMapper in AndroidGrant Limberg
Enables UPnP port mapping for Android client on networks with UPnP routers
2017-07-12put the correct file extensions on data written to disk in JNIGrant Limberg
2017-07-12fix packet sending functionsGrant Limberg
2017-07-12Update JNI code to reflect new ZeroTier APIGrant Limberg
2017-05-23Let Android Studio determine debug/release buildGrant Limberg
2017-03-29added orbit/deorbit methods to java Node implementationGrant Limberg
2017-03-29fix path checker initializationGrant Limberg
2017-03-29Added path checking interface for JavaGrant Limberg
2017-03-28fix native end of JNI code for new thread data ptrGrant Limberg
2017-03-09fix some rediculousness in NDK-14Grant Limberg
Apparently having -fPIC on the command line multiple times turns it back off
2017-02-23Android JNI fixGrant Limberg
2017-02-13Update JNI with new root terminologyGrant Limberg
2017-01-26remove references to deleted source files in Android NDK build filesGrant Limberg
2017-01-13fix Android NDK buildGrant Limberg
2017-01-05add implementations of compareTo() and equals() for VirtualNetworkRoute().Grant Limberg
Android app was relying on these, but since they didn't exist, they didn't function properly