556 Commits

Author SHA1 Message Date
Joseph Henry 2ba5e6b90d Remove vestigial version file 2023-08-23 10:14:28 -07:00
Joseph Henry 1bdced9e91 Merge pull request #252 from zerotier/bugfix/211
Fix #211: Use tcpip_input for IPv6 instead of ethernet_input
2023-08-21 14:21:42 -07:00
Brenton Bostick 8a414d59ea Fix #211: Use tcpip_input for IPv6 instead of ethernet_input 2023-08-21 17:09:10 -04:00
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
Brenton Bostick f5ffc062e9 rename 2023-08-21 12:20:23 -04:00
Joseph Henry 2a8670e5c8 Merge pull request #249 from zerotier/brenton/fix-formatting
fix formatting
2023-08-19 08:45:35 -07:00
Brenton Bostick 18a2c38f42 Fix warning: [cast] redundant cast to int 2023-08-18 08:46:21 -04:00
Brenton Bostick 84800534e7 fix formatting 2023-08-18 08:43:09 -04:00
Brenton Bostick dd45f9fb45 Fix https://github.com/zerotier/libzt/issues/242
When processing events, AttachCurrentThread is called, but matching
DetachCurrentThread was not being called

This prevented main thread from exiting
2023-08-04 10:50:30 -04:00
Joseph Henry dd0d606422 Add missing zts_init_set_low_bandwidth_mode 2023-08-03 15:47:50 -07:00
Joseph Henry 431c4214a5 Merge pull request #239 from zerotier/brenton/fix-incorrect-types
Fix: Incorrect type for parameter 'net_id', which should have type 'j…
2023-08-02 10:13:27 -07:00
Brenton Bostick 8aa689034e Fix: Incorrect type for parameter 'net_id', which should have type 'jlong'.
Incorrect return type uint64_t, which should have been jlong.
Incorrect return type uint64_t, which should have been jlong.
Incorrect return type uint64_t, which should have been jlong.
2023-08-02 12:57:48 -04:00
Brenton Bostick b4c7fd1a0f Fix: Cannot resolve symbol 'localPort'
Remove second bind() with unused backlog arg and identical impl as first
bind()
2023-08-02 12:55:22 -04:00
Joseph Henry f5eee8d25a Merge pull request #237 from zerotier/brenton/fix-switch
Fix: warning: enumeration value 'TCP_HTTP_OUTGOING' not handled in sw…
2023-08-02 09:20:55 -07:00
Brenton Bostick aede837fea Fix: warning: enumeration value 'TCP_HTTP_OUTGOING' not handled in switch [-Wswitch] 2023-08-02 12:11:47 -04:00
Brenton Bostick 6fe2d49ef1 Fix: field '_lastRestart' will be initialized after field '_tcpFallbackTunnel' [-Wreorder-ctor] 2023-08-02 12:08:07 -04:00
Brenton Bostick b85a6a4597 Fix typos and bump ZTO submodule commit to include Fix typos (https://github.com/zerotier/ZeroTierOne/pull/2075) 2023-08-02 11:29:22 -04:00
Joseph Henry 2d83bc25f3 Fix tcp relay api logic error 2023-07-26 12:42:43 -07:00
Joseph Henry 10548d9b05 Fix mismatched types in tcp relay api 2023-07-26 12:41:18 -07:00
Joseph Henry 5874e442eb Port over TCP relay functionality from ZeroTier One 2023-07-24 18:56:40 -07:00
Joseph Henry e0200fbde0 Merge pull request #231 from zerotier/brenton/fix-return-type-warnings
fix return type warnings
2023-07-20 10:30:01 -07:00
Joseph Henry a3b3d8217d Merge pull request #232 from zerotier/brenton/fix-missing-jni-function
fix: Cannot resolve corresponding JNI function Java_com_zerotier_sock…
2023-07-20 10:29:50 -07:00
Brenton Bostick a0ffaec02c fix return type warnings
Not any of these functions are used in ZeroTierNative.java

libzt/src/bindings/java/JavaSockets.cxx:600:1: warning: non-void function does not return a value [-Wreturn-type]
libzt/src/bindings/java/JavaSockets.cxx:620:1: warning: non-void function does not return a value [-Wreturn-type]
libzt/src/bindings/java/JavaSockets.cxx:629:1: warning: non-void function does not return a value [-Wreturn-type]
libzt/src/bindings/java/JavaSockets.cxx:638:1: warning: non-void function does not return a value [-Wreturn-type]
2023-07-19 15:50:14 -04:00
Brenton Bostick 88681c02c4 fix: Cannot resolve corresponding JNI function Java_com_zerotier_sockets_ZeroTierNative_zts_1net_1get_1mac. 2023-07-19 15:47:12 -04:00
Brenton Bostick 6ce18af3e6 fix unused warnings
libzt/src/bindings/java/JavaSockets.cxx:40:10: warning: unused variable 'rs' [-Wunused-variable]
libzt/src/Events.cpp:185:14: warning: unused variable 'rs' [-Wunused-variable]
libzt/src/Events.cpp:189:18: warning: unused variable 'arg' [-Wunused-variable]
libzt/src/NodeService.cpp:1064:17: warning: variable 'err' set but not used [-Wunused-but-set-variable]
2023-07-19 15:19:40 -04:00