Commit Graph

537 Commits

Author SHA1 Message Date
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
Joseph Henry
9a8dc5c8ea Removed stray debug line 2019-02-26 13:50:04 -08:00
Joseph Henry
52846b34aa Increased ARP_TABLE_SIZE from 3 to 64 2019-02-26 13:41:14 -08:00
Joseph Henry
bc32549dde Improved zts_get_*_status() functions. Added new error code ZTS_ERR_NO_RESULT 2019-02-26 13:40:04 -08:00
Joseph Henry
362f6769b2 Bug fix for callbacks, minor netif driver tweak, minor Makefile tweak 2019-02-25 14:52:19 -08:00
Joseph Henry
884425fc5b Fixed memory leak in callback message handling code 2019-02-21 14:06:29 -08:00
Joseph Henry
19be36611d Enabled LWIP_TCPIP_CORE_LOCKING_INPUT and updated ethernet driver accordingly, improved RX 2019-02-20 20:31:02 -08:00
Joseph Henry
1cd0056ada Added argument checks to VirtualTap::put() 2019-02-20 16:08:37 -08:00
Joseph Henry
34b84a0b3c Turned off DEBUGs in lwipopts.h 2019-02-14 18:42:30 -08:00
Joseph Henry
0b287dbcab TCP Performance tuning of lwIP 2019-02-14 18:40:20 -08:00
Joseph Henry
8b4921432e Android build fixes 2019-02-14 17:58:03 -08:00
Joseph Henry
a43d1d04e8 Unfinished callback improvements, consolidated netif4 and netif6 2019-02-14 17:27:16 -08:00
Joseph Henry
c8e6662d24 Added ZTS_EVENT_NETWORK_DOWN to tap destructor 2019-02-07 14:33:23 -08:00
Joseph Henry
1f8d3030c8 Added a lock-free queue to lwIP driver for RX packet processing. Added checks to force strict ordering of callback events 2019-02-07 14:11:17 -08:00
Joseph Henry
52a7e9229e Added options for enabling and disabling network caching. Also modified tap polling interval 2019-02-07 10:53:50 -08:00
Joseph Henry
4de1068b57 Moved lwIP initialization from tap to zts_start for faster startup 2019-02-06 23:34:26 -08:00
Joseph Henry
2fdcf025e1 Re-work of thread model 2019-02-06 22:00:39 -08:00
Joseph Henry
292fcdda2c Improved callback logic. Simplified lwip driver. 2019-01-31 03:08:48 -08:00
Joseph Henry
d715ebd461 Bugfix for hang in VirtualTap after calling getRoutes() and attempting to leave(), bugfix for potential memory leak if packet was rejected from stack 2019-01-27 22:43:42 -08:00
Joseph Henry
2fde6158ed Upgraded lwIP stack to 2.1.2 2019-01-27 22:39:44 -08:00
Joseph Henry
f6a3155f08 Fixed bug that caused packets to be fed into multipl netifs when joined to two or more networks 2019-01-26 23:34:04 -08:00
Joseph Henry
068013d0f7 Switch to MEM_LIBC_MALLOC usage in lwIP. Added event callbacks. Use of finer-grained locks in RX logic. CRCs disabled on inbound packets 2019-01-25 12:42:53 -08:00
Joseph Henry
4e0c00aaff Improved reliability and performance, better startup and shutdown semantics, HTTP control plane is now disabled by default 2019-01-14 12:01:29 -08:00
Joseph Henry
5bccd78080 Fix for memory corruption seen on Windows -- For ticket #36 2018-10-18 13:41:29 -07:00
Joseph Henry
24e74a8fc8 Fixed bad RX frame buffer math. Fixed RX frame dropping block. Pbufs are now properly preserved for application reading - Ticket #31 2018-10-11 15:54:24 -07:00
Joseph Henry
71ea71e33a Bugfix for issue #31 - Proper handling of ad-hoc and 6plane network addresses 2018-09-20 17:51:44 -07:00