Brenton Bostick
ee5047b59a
Fix https://github.com/zerotier/libzt/issues/244 :
...
Memory leak if libzt events aren't consumed by user app
If arg is not enqueued by Events, then treat as if ownership has NOT
been transferred and caller of Events->enqueue is responsible for freeing
2023-08-21 14:05:13 -04:00
staphen
e80bc35a26
Use lowercase when including Windows headers
2021-12-29 16:23:32 -05:00
github-actions
8d554e88c5
Code style fixes
2021-05-06 07:38:48 +00:00
Joseph Henry
0890e2608f
Commented out pthread_setname_np to address portability concern #116
2021-05-06 00:38:09 -07:00
Joseph Henry
3e304cb25a
Reduce number of compile-time warnings (continued)
2021-04-30 16:38:21 -07:00
Joseph Henry
016b0ffc0e
Adjust nomenclature. Add more C API extension functions
2021-04-29 14:03:15 -07:00
Joseph Henry
a247552df1
Format according to new ZeroTier standard
2021-04-26 22:07:55 -07:00
Joseph Henry
c456a87f97
Add zts_core_query_ and world sub-APIs. Adjust event subsystem
2021-04-26 21:55:01 -07:00
Joseph Henry
43350691b5
Expand C API and simplify NodeService
2021-04-22 11:20:04 -07:00
Joseph Henry
a5121b1e3c
Applied styling rules from .clang-format
2021-04-17 23:46:21 -07:00
GermanAizek
ac1a1b1d2b
Fixed memleak, optimize and refactor code
2021-03-26 01:15:52 +03:00
Joseph Henry
26454d2939
Bugfix: calling zts_free() before zts_start() would enter infinite loop
2021-03-13 22:30:33 -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
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
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
676ddd15d4
Change default MTU to 2800
2020-05-06 20:24:58 -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
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
dcfd4b032a
Minor build fixes for Windows
2019-06-11 16:31:59 -07:00
Joseph Henry
17af1deeaa
Updated documentation, removed unnecessary include
2019-04-10 16:39:18 -07: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
362f6769b2
Bug fix for callbacks, minor netif driver tweak, minor Makefile tweak
2019-02-25 14:52:19 -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
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
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
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
42a21d444b
Fixed Windows high CPU utilization bug
2018-07-31 15:58:03 -07:00
Joseph Henry
07be7a25a3
Removed cruft from project
2018-07-19 17:19:06 -07:00
Joseph Henry
c107f2c05c
Fixed some debug trace format specifiers to reduce compile-time warnings (round two)
2018-02-21 12:02:16 -08:00
Joseph Henry
9fba2a6d32
Fixed some debug trace format specifiers to reduce compile-time warnings
2018-02-21 11:42:07 -08:00
joseph.henry
2c5634343a
tweaks for Windows cmake build
2018-01-30 17:27:40 -08:00
Joseph Henry
311ed8e533
Updated copyright for 2018
2018-01-08 17:05:48 -08:00
Joseph Henry
8ec82b026a
Officially deprecated old Makefile in favor of CMake
2017-12-15 16:26:27 -08:00
Joseph Henry
8d1d77a8a4
zts_* API updates, unfinished lwIP tweaks
2017-11-21 15:53:31 -08:00
Joseph Henry
c2e664ac22
Commented out debug statement in VirtualTap
2017-11-13 15:27:15 -08:00
Joseph Henry
e0d4b84dd4
Preparation for C--, removed classes, namespaces, advanced build options are now controlled via include/libztDefs.h
2017-11-06 13:50:20 -08:00
Joseph Henry
427f87db91
More fixes for Windows support
2017-10-10 12:41:36 -07:00
Joseph Henry
2900f1f995
Windows Support
2017-10-09 17:56:40 -07:00
Joseph Henry
c0aac699e7
Stubbed out experimental raw drivers
2017-09-29 15:37:50 -07:00
Joseph Henry
1afb2308b6
Added comment syntax for doxygen, fixed build flag which produced unnecessarily-large binaries, removed trailing whitespace
2017-09-27 13:42:27 -07:00
Joseph Henry
5f1e9fe795
Introduction of sequential-API build variant, better thread safety (lwIP only)
2017-09-27 02:29:04 -07:00