summaryrefslogtreecommitdiff
path: root/java/src/com
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-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-11-28fix typos in codeBrenton Bostick
2022-11-28fix typos in comments and stringsBrenton Bostick
2022-03-04update JNI to add new status codeGrant Limberg
2020-11-24another comparison fixGrant Limberg
2020-11-24fix dns equality check in AndroidGrant Limberg
2020-10-21forgot accessorsGrant Limberg
2020-10-21JNI for dns configurationGrant Limberg
2020-06-18android changesGrant Limberg
2020-05-18Add new ZT_ result codes that were addedGrant Limberg
2020-05-14fix equals() methodsGrant Limberg
2017-07-12fix packet sending functionsGrant Limberg
2017-07-12Update JNI code to reflect new ZeroTier APIGrant Limberg
2017-03-29added orbit/deorbit methods to java Node implementationGrant Limberg
2017-03-29Added path checking interface for JavaGrant Limberg
2017-02-13Update JNI with new root terminologyGrant 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
2016-11-09update JNI wrapper to reflect removal of lastMulticastFrame and ↵Grant Limberg
lastUnicastFrame from ZT_Peer struct
2016-09-21java code still needed to reflect PEER_ROLE_RELAY rename to PEER_ROLE_UPSTREAMGrant Limberg
2016-09-06Reflect changes to strut ZT_PeerPhysicalPathGrant Limberg
2016-09-05re-adding fileGrant Limberg
2016-09-05Attempting to fix VirtualNetworkRoute having 2 entries in git. Yay non case ↵Grant Limberg
sensitive filesystems
2016-09-05Fixing filename again....Grant Limberg
2016-09-05fix capitalization on fileGrant Limberg
2016-09-05ensure routes are also equal when checking for equality on ↵Grant Limberg
VirtualNetworkConfig objects
2016-09-05Added VirtualNetworkRoute class and added it to VirtualNetworkConfigGrant Limberg
2016-07-07update JNI code for 1.1.6Grant Limberg
2015-11-14added ttl parameter to WirePacketSendFunctionGrant Limberg
2015-11-02updates for origin/edgeGrant Limberg
2015-09-26update PacketSender interfaceGrant Limberg
2015-09-26Merge branch 'adamierymenko-dev' into android-jni-devGrant Limberg
also update for changed function calls that now accept a local address # Conflicts: # include/ZeroTierOne.h # java/CMakeLists.txt # java/jni/Android.mk # java/jni/ZT1_jnicache.cpp # java/jni/ZT1_jnilookup.h # java/jni/ZT1_jniutils.cpp # java/jni/com_zerotierone_sdk_Node.cpp
2015-09-24(1) Make ZT_ naming convention consistent (get rid of ZT1_), (2) Make local ↵Adam Ierymenko
interface a full sockaddr_storage instead of an int identifier, which turns out to be better for multi-homing and other uses.
2015-07-09fixed a misspellingGrant Limberg
2015-06-26reflect changes to ZT1_PeerRole in JNIGrant Limberg
2015-06-23added Comparable interface to VirtualNetworkConfig so we can sort arrays ↵Grant Limberg
containing it.
2015-06-19dont consider multicast groups in VirtualNetworkConfig.equals()Grant Limberg
2015-06-17Merge branch 'adamierymenko-dev' into android-jniGrant Limberg
2015-06-09Logging and adding .equals() methods to MulticastGroup and VirtualNetworkCofnigGrant Limberg
2015-06-03delete dead test codeGrant Limberg
2015-05-28Replace ArrayList instances with []Grant Limberg
2015-05-26still getting re-used to all the places you have to put access modifiers in JavaGrant Limberg
2015-05-23fixing up data store stuffGrant Limberg
2015-05-21Remove link desperation from java APIGrant Limberg
2015-05-06Renamed supernode to rootserverKees Bos
2015-05-04build & package libZeroTierOneSDK.jnilib on Mac oSGrant Limberg
Signed-off-by: Grant Limberg <[email protected]>