Commit Graph

412 Commits

Author SHA1 Message Date
MoogleTroupe
5ba67d918d fix GC issue in c#
Store a reference to the unmanaged delegate so that the c# garbage collector doesn't wipe it out which causes a hard crash since the unmanaged dll is still referencing it.
2021-03-09 20:52:24 -05:00
Joseph Henry
e6b439acb5 Update C# wrapper 2021-02-16 21:56:44 -08:00
Joseph Henry
a6297b33e2 Add NuGet package and build scripts 2021-02-05 15:58:48 -08:00
Joseph Henry
59545833e6 Update license header dates 2021-02-04 11:03:55 -08:00
Joseph Henry
b8cfadde0e Fix various minor compile-time warnings 2021-02-02 11:36:51 -08:00
Joseph Henry
38ea47212d Restructure packaging directories. Move C# bindings, minor compilation fix. 2021-02-01 17:59:21 -08:00
Joseph Henry
3544eab41d Add prototype key management API 2021-01-30 13:53:49 -08:00
Joseph Henry
026d91dedf Remove block that generates authtoken (vestigial leftover from OneService) 2021-01-29 11:09:47 -08:00
Joseph Henry
097fc5d7f0 Add prototype Central API wrapper 2021-01-29 01:26:46 -08:00
Joseph Henry
04066dbc22 Remove errant file 2021-01-23 12:07:36 -08:00
Joseph Henry
8313ed5a9f e7no7nVRFItg 2021-01-23 11:58:06 -08:00
Joseph Henry
706f493f2d Fix bug that resulted in peer caching data being written to disk even with not allowed 2021-01-15 14:22:39 -08:00
Joseph Henry
4122110cea Add C# P/INVOKE wrapper and client/server example 2021-01-04 21:03:57 -08:00
Evan Olcott
abbe7957c7 Support for creating .xcframework
* `make macOS` builds a universal framework
* `make xcframework` builds an .xcframework containing frameworks for macOS (universal), iOS, and iOS Simulator
* Addresses a compiler warning
2020-11-29 17:49:18 -06:00
Joseph Henry
e304a89ddb Add check for netif before use in VirtualTap - Fixes bug mentioned in ticket #85 2020-11-19 10:08:31 -08:00
Joseph Henry
b021e82078 Fix zts_allow_*_caching() bug that prevents user from properly setting value before node startup 2020-10-21 14:26:29 -07:00
Joseph Henry
37c01e18cf Change event code numbering scheme, fix Windows startup bug, fix zts_free(), remove vestigial API functions, update documentation 2020-05-30 18:29:04 -07:00
Joseph Henry
5d2147921c Merge branch 'master' of https://github.com/zerotier/libzt 2020-05-29 11:27:23 -07:00
rossmc7
3f1e9f00d1 Fixing Android/Java crash on boot due to missing init method (#70)
* adding extern c to library methods to fix JNI crash on init

* changed style to use ifdef cplusplus
2020-05-29 11:24:22 -07:00
Joseph Henry
a2cbea6dee Merge branch 'master' of https://github.com/zerotier/libzt 2020-05-11 10:21:23 -07:00
Lann Martin
a708c72dfa Fix struct name in zts_get_rfc_*_addr 2020-05-07 22:56:54 -04:00
Joseph Henry
676ddd15d4 Change default MTU to 2800 2020-05-06 20:24:58 -07:00
Joseph Henry
112d66ea20 Fix non-blocking behavior of sockets (removal of a portion of the old compatibility layer) 2020-05-05 14:35:22 -07:00
Joseph Henry
a0b50530d3 Add portability and consistency fixes for C API, remove cruft, slight internal restructuring 2020-05-01 19:15:38 -07:00
Joseph Henry
894d3bf415 Fix (some) Windows compiler warnings 2020-04-20 23:50:21 -07:00
Joseph Henry
8e770b5355 Update JNI error codes to match new scheme 2020-04-17 19:35:46 -07:00
Joseph Henry
907a2e8417 Add Ad-hoc network ID convenience function to control interface 2020-04-17 11:37:46 -07:00
Joseph Henry
9eefbd55d3 Improve documentation and error reporting 2020-04-17 11:35:43 -07:00
Joseph Henry
2b60ab27ea Add network and peer caching toggles to API, fix 6PLANE and RFC4193 address computation 2020-04-15 16:08:40 -07:00
Joseph Henry
51dfa84ba9 Fix netif IPv6 handling, misc cleanup, license update from GPL-3 to BSL 1.1 2020-04-13 23:38:06 -07:00
Joseph Henry
e9e1f8920d Naming convention tweaks for SWIG wrapper compatibility 2019-07-02 10:14:39 -07:00
Joseph Henry
fe30716143 Added arm64-v8a, x86, x86_64 ABIs to build.gradle 2019-06-24 13:59:58 -07:00
Joseph Henry
17e5b8172d Minor changes for Windows build 2019-06-18 11:06:05 -07:00
Joseph Henry
dcfd4b032a Minor build fixes for Windows 2019-06-11 16:31:59 -07:00
Joseph Henry
e727dfefb2 Replaced ZT_FAST_MEMCPY with memcpy in Service.cpp 2019-05-03 12:07:01 -07:00
Joseph Henry
17af1deeaa Updated documentation, removed unnecessary include 2019-04-10 16:39:18 -07:00
Joseph Henry
94d221a055 Bugfix for JNI version of zts_restart() 2019-03-27 17:09:30 -07:00
Joseph Henry
e8553c9907 Added zts_get_protocol_stats(), zts_restart(), updated API documentation 2019-03-27 15:08:27 -07:00
Joseph Henry
630c3d6331 Moved Java sources to src/java 2019-03-18 16:08:18 -07:00
Joseph Henry
3cbc1017eb Added ZTS_ERR_GENERAL, also minor updates to JNI layer 2019-03-18 14:23:34 -07:00
Joseph Henry
52c718ff9f Decreased MTU to 1500, increased TCP_WND to 0xffff0, tweaked window scaling factor 2019-03-11 21:49:51 -07:00
Joseph Henry
320253517b RX/TX improvements, build process improvements 2019-03-11 17:17:35 -07:00
Joseph Henry
3792683cc6 Set _incomingPacketConcurrency to 1 2019-03-07 10:59:50 -08:00
Joseph Henry
3b967c1a12 Updated build script, minor shuffling of code to prevent naming conflicts 2019-03-04 18:04:37 -08:00
Joseph Henry
0afa8e41fa Minor update to control api (and JNI). zts_start, zts_stop return int 2019-02-28 15:47:49 -08:00
Joseph Henry
916b9605a3 Set TCP_RCV_SCALE to 3 and increased TCP_WND from 0xffff to 0x7fff8 2019-02-28 11:47:19 -08:00
Joseph Henry
305829d0e5 #ifdef'd out niceness setter for Android 2019-02-28 11:45:54 -08:00
Joseph Henry
41d6457711 #ifdef'ed out netif callback functions 2019-02-27 19:20:01 -08:00
Joseph Henry
055d8acb25 Added _change_nice(), and options in src/Options.h 2019-02-27 18:37:00 -08:00
Joseph Henry
0c06006ab1 Increased LWIP_DRIVER_LOOP_INTERVAL to 250 ms, other minor changes 2019-02-27 18:25:29 -08:00