2 Commits
Author SHA1 Message Date
eventlOwOpandGitHub 5d0a3c2ea9 Update README_ZH.md 2025-08-13 15:36:04 +08:00
eventlOwOpandGitHub dfcd8922e5 Update README.md 2025-08-13 15:34:25 +08:00
2 changed files with 11 additions and 2 deletions
+4
View File
@@ -105,3 +105,7 @@ After 1.14.0, ZeroTierOne has introduce `multi-core concurrent packet processing
However, for NDK, `pthread_setaffinity_np` won't be available until API level 36, Android 16. (refer to https://android.googlesource.com/platform/bionic/+/master/libc/include/pthread.h) However, for NDK, `pthread_setaffinity_np` won't be available until API level 36, Android 16. (refer to https://android.googlesource.com/platform/bionic/+/master/libc/include/pthread.h)
So in the NDK bulid version, it is replaced by the combination of `pthread_gettid_np` from `<pthread.h>` and `sched_getaffinity` from `<sched.h>`. So in the NDK bulid version, it is replaced by the combination of `pthread_gettid_np` from `<pthread.h>` and `sched_getaffinity` from `<sched.h>`.
## Using your phone as router, want LAN to LAN mapping?
See [ThermalEng/zerotier-magisk](https://github.com/ThermalEng/zerotier-magisk/). Inform me by creating issue. Future function and UI integration if many module users want it.
+5
View File
@@ -105,3 +105,8 @@ ZeroTier 可执行文件和操作的 Shell 脚本放在 `/data/adb/zerotier/`
`pthread_setaffinity_np` 在 NDK 的 API level 36, Android 16 才受支持。 (参考 https://android.googlesource.com/platform/bionic/+/master/libc/include/pthread.h) `pthread_setaffinity_np` 在 NDK 的 API level 36, Android 16 才受支持。 (参考 https://android.googlesource.com/platform/bionic/+/master/libc/include/pthread.h)
所以 NDK 中他被替换成了 `<pthread.h>``pthread_gettid_np``<sched.h>``sched_getaffinity` 的组合,来实现相同的功能 所以 NDK 中他被替换成了 `<pthread.h>``pthread_gettid_np``<sched.h>``sched_getaffinity` 的组合,来实现相同的功能
## 手机做路由器,想要 LAN to LAN
参考 [ThermalEng/zerotier-magisk](https://github.com/ThermalEng/zerotier-magisk/)
开 issue 统计一下需求,人多就合并再做 UI