Added -s option support for proxying with splice() for Liux

(without copying network data to
userspace). Currently only for tcppm.
This commit is contained in:
z3apa3a committed 2016-12-19 02:56:23 +03:00
1 parent 945c30c5ee
commit 6696b35d74
6 files changed
+236 -4

No files matched your search

+7 -1
View File
@@ -121,6 +121,9 @@ int MODULEMAINFUNC (int argc, char** argv){
#else
" -u never ask for username\n"
" -u2 always ask for username\n"
#endif
#ifdef WITHSLICE
" -s Use slice() - faster proxing, but no filtering for data\n"
#endif
" -fFORMAT logging format (see documentation)\n"
" -l log to stderr\n"
@@ -303,7 +306,10 @@ int MODULEMAINFUNC (int argc, char** argv){
break;
case 's':
case 'a':
srv.singlepacket = 1 + atoi(argv[i]+2);
if(isudp)
srv.singlepacket = 1 + atoi(argv[i]+2);
else
srv.usesplice = 1 + atoi(argv[i]+2);
break;
default:
error = 1;