Open iwinux opened 11 years ago
Hey, where did you find the definitions for node_t? I tried to copy the files as you say but I cannot find definitions of node_t.
@Periphory well, since this was a nearly two-year old issue, things may change drastically :(
Hmm, I cannot find a more up-to-date straight build for Android. None of the files that are in the place you linked have been updated since before then so there must be a definition somewhere.
I've added following paragraph to README:
When is redsocks probably a wrong tool?
- redirecting traffic to proxy on mobile device running Android or iOS as it'll require rooting to update firewall rules. Probably, the better way is to use on-device VPN daemon to intercept traffic via
VpnService
API for Android andNETunnelProvider
family of APIs for iOS. That may require some code doing TCP Reassembly liketun2socks
.
Tell me, is Android build still relevant for your project? Probably, tun2socks
(or alike code) would suit better as it has same capabilities and does not require root
.
redudp.c
has been usingtfind / tsearch
functions (defined in<search.h>
) since commit 709646d59d96cb73a7e70347f37de9823e4e5f14, which causes the failure of cross-compiling for Android, because the Android standalone toolchain doesn't provide<search.h>
, neither does it implementstfind
related functions.A quick fix can be done by downloading the missing files from here, put them into the redsocks repo, and update
Makefile
to add these dependencies. (tested on my machine and it works)What do you think?