babarosaM33
a727596faa
jconf: fix memory leak
2020-08-04 21:56:45 +08:00
babarosaM33
81bbd98d8b
udprelay: exclude udp remote_recv_sendto buff full
...
before:
udp send buff full would not reset timeout trigger
after:
fix it
2020-02-08 17:55:07 +08:00
babarosaM33
a5111fe32f
updrelay: cleanup
2020-02-07 15:11:14 +08:00
babarosaM33
a5005664a7
ppbloom: save free() and subsequent init() overhead
...
init utilizes calloc which malloc and memset.
need cherry-pick commit of libbloom
2020-01-29 18:57:19 +08:00
babarosaM33
88c4d2aaab
crypto: lower bloom filter error rate
...
before patch:
full bloom filter error rate before reset 1-(1-1e-6)^5e5=1-0.606=0.394
after patch:
1-(1-1e-10)^5e5=1-0.99995=5e-5
2020-01-29 16:31:14 +08:00
babarosaM33
30d5b85fe7
Revert "ppbloom:remove unnecessay bloom_check"
...
ppbloom_add only checks current bloom filter not both PING PONG filters
This reverts commit 9ae59819be .
2020-01-29 16:09:10 +08:00
babarosaM33
8c03d25314
udprelay: fix more tos
2020-01-19 12:07:50 +08:00
babarosaM33
247d53098c
server: replace memmove with idx
2020-01-19 09:46:18 +08:00
babarosaM33
4d617adfb0
refine tos setsockopt in redir and udprelay
...
make tos setup working at ipv4 and ipv6
2020-01-17 19:16:02 +08:00
babarosaM33
b48dcddc6c
server: fix setTosFromConnmark typo
...
Server made a connection to remote, remote replied with that connection.
nf_conntrack module would not check reply-dst and reply-src by default.
more information please refer to https://www.spinics.net/lists/netfilter/msg57842.html
As a result, src and dst should be swapped to make nf_conntrack find the connection.
2020-01-17 13:10:47 +08:00
babarosaM33
3908f3ac85
crypto: md5 hash works without hmac mode
...
setup mbedtls_md_context_t with hmac disabled to save some memory.
2020-01-15 12:20:18 +08:00
babarosaM33
9576dcea54
initialize after pass check
...
if check failes, no need to initialize crypto.
2020-01-13 13:39:02 +08:00
babarosaM33
9ae59819be
ppbloom:remove unnecessay bloom_check
...
bbloom_add and bbloom_check are in fact the same function.
let's make bbloom_add return collision information.
2020-01-13 13:24:52 +08:00
babarosaM33
7fe555c756
Remove unnecessary memmove
...
Before patch, after one chunk decoded, we do a memmove.
After patch, after all complete chunk decoded, we do a memmove.
2020-01-08 04:33:35 +08:00