Comments (10)
更新再试。
from ipt2socks.
no errors, but still some warnings:
gcc -w -O2 -c libev/ev.c -o ev.o
gcc -std=c99 -Wall -Wextra -O2 -pthread -c ipt2socks.c -o ipt2socks.o
ipt2socks.c: In function 'tcp_stream_payload_forward_cb':
ipt2socks.c:40:58: warning: implicit declaration of function 'syscall' [-Wimplicit-function-declaration]
40 | #define splice(fdin, offin, fdout, offout, len, flags) syscall(__NR_splice, fdin, offin, fdout, offout, len, flags)
| ^~~~~~~
ipt2socks.c:741:25: note: in expansion of macro 'splice'
741 | ssize_t nrecv = splice(self_watcher->fd, NULL, self_pipefd[1], NULL, TCP_SPLICE_MAXLEN, SPLICE_F_MOVE | SPLICE_F_NONBLOCK);
| ^~~~~~
gcc -std=c99 -Wall -Wextra -O2 -pthread -c logutils.c -o logutils.o
logutils.c: In function 'my_strerror':
logutils.c:10:12: warning: implicit declaration of function 'strerror_r'; did you mean 'strerror'? [-Wimplicit-function-declaration]
10 | return strerror_r(errnum, g_errstr_buffer, ERRSTR_BUFLEN);
| ^~~~~~~~~~
| strerror
logutils.c:10:12: warning: returning 'int' from a function with return type 'const char *' makes pointer from integer without a cast [-Wint-conversion]
10 | return strerror_r(errnum, g_errstr_buffer, ERRSTR_BUFLEN);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -std=c99 -Wall -Wextra -O2 -pthread -c lrucache.c -o lrucache.o
gcc -std=c99 -Wall -Wextra -O2 -pthread -c netutils.c -o netutils.o
gcc -std=c99 -Wall -Wextra -O2 -pthread -c protocol.c -o protocol.o
gcc -std=c99 -Wall -Wextra -O2 -pthread -s -o ipt2socks ipt2socks.o logutils.o lrucache.o netutils.o protocol.o ev.o -lm
from ipt2socks.
编辑 Makefile,将 c99 改为 gnu99 试下。
from ipt2socks.
edit makefile...
make clean && make all
from ipt2socks.
明天我有时间再看下这个警告如何消除(alpine真是奇怪)。。。
from ipt2socks.
把Makefile里的c99改为gnu99之后,出现同样的警告信息。
from ipt2socks.
运行时出现的错误提示:
2020-06-09 10:58:47 ERR: [tcp_stream_payload_forward_cb] recv from client stream: (null)
from ipt2socks.
..这只是网络错误。只是errmsg没有打印出来。
from ipt2socks.
更新再试,看下是否还有警告。
from ipt2socks.
警告没有了,编译正常
from ipt2socks.
Related Issues (20)
- 是否能承受高负载转发 HOT 1
- How can I forward ipt2socks TPROXY port to a subnet? HOT 2
- 建议增加dns to socks5这里的功能 HOT 3
- linux
- 请各位大佬帮我看看为什么用ipt2socks转UDP出错,xray转就没问题 HOT 5
- '-b' 参数不起作用 HOT 4
- Can't forward UDP to a sub-net with tproxy HOT 4
- 编译环境有问题 HOT 8
- 可否加入代理链的支持? HOT 1
- 能否加入 socks4 协议支持? HOT 8
- [Question] How can I forward traffic across network namespaces with ipt2socks? HOT 3
- 在speedtest.net测试单线程峰值速度更高 HOT 28
- Is "really" transparent proxy? HOT 3
- ERROR: package/feeds/helloworld/ipt2socks failed to build. HOT 4
- nftables全局代理配置寻求帮助 HOT 16
- 为什么ipt2socks需要udp 443的端口监听呢? HOT 9
- 当socks服务开在本地服务器时,则会陷入socks循环请求(iptables规则死循环) HOT 3
- UDP报文经过代理后目标IP和端口都变成0 (上游socks5的udp实现不正确) HOT 14
- ERR: [udp_socks5_recv_tcpmessage_cb] recv unknown msg from socks5 server, release ctx HOT 16
- 使用TPROXY代理UDP时,上级的SOCKSIP只有为127.0.0.1时能够正常工作 HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ipt2socks.