Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5d0a3c2ea9 | ||
|
|
dfcd8922e5 |
@@ -104,4 +104,8 @@ 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.
|
||||||
|
|||||||
+6
-1
@@ -104,4 +104,9 @@ 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
|
||||||
|
|||||||
Reference in New Issue
Block a user