Debian Patches

Status for shadowsocks-libev/3.3.5+ds-10

Patch Description Author Forwarded Bugs Origin Last update tests/ Explicitly use python3 Boyuan Yang <> no 2020-02-23
02-Add-support-for-libjsonparser-dev.patch Add support for libjsonparser-dev Roger Shimizu <> no 2020-04-30
03-src-acl.c-Include-libcork-ipset.h-not-libcorkipset-i.patch src/acl.c: Include <libcork/ipset.h> not <libcorkipset/ipset.h>
Latest libcorkipset moved its headers under /usr/include/libcork/
directory. Use the new location instead.

This avoid #warning triggering build error due to -Werror=cpp.
Boyuan Yang <> no 2021-09-08
backport/03-Fix-manager-not-passing-i-option.patch Fix manager not passing -i option
(cherry picked from commit 72db525aaccc1a2f293d3caaa1cc7b59e83a788b)
SamHurwitz <> no 2020-10-17
backport/04-Fix-ftbfs-for-Hurd-since-there-is-no-IPV6_TCLASS-defin.patch Fix ftbfs for Hurd since there is no IPV6_TCLASS defined Roger Shimizu <> no 2020-12-19
backport/05-Fix-ERROR-udp-remote_recv_bind-Address-already-in-us.patch Fix "ERROR: [udp] remote_recv_bind: Address already in use" when multiple `reuse_port`-enabled `ss-redir` instances are listening on the same
Jared Pyzynski <> no 2021-01-29
backport/ use pkg-config to find netfilter_conntrack
Use pkg-config to retrieve the dependencies of netfilter_conntrack
and avoid the following build failure when building statically:

configure:13096: /data/buildroot-test/instance-1/output-1/host/bin/x86_64-linux-gcc -o conftest -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -static -I/data/buildroot-test/instance-1/output-1/host/x86_64-buildroot-linux-uclibc/sysroot/usr/include -DPCRE_STATIC -pthread -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -static -L/data/buildroot-test/instance-1/output-1/host/x86_64-buildroot-linux-uclibc/sysroot/usr/lib conftest.c -lnetfilter_conntrack -lnfnetlink -lev -lcares -lsodium -lmbedcrypto -lpcre >&5
/data/buildroot-test/instance-1/output-1/host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-uclibc/8.3.0/../../../../x86_64-buildroot-linux-uclibc/bin/ld: /data/buildroot-test/instance-1/output-1/host/x86_64-buildroot-linux-uclibc/sysroot/usr/lib/libnetfilter_conntrack.a(api.o): in function `nfct_fill_hdr.constprop.4':
api.c:(.text+0x3f): undefined reference to `mnl_nlmsg_put_header'

Fabrice Fontaine <> no 2020-11-23
backport/07-Fix-memory-leak.patch Fix memory leak lixingcong <> no 2021-03-17
backport/08-Fix-memory-leak-in-manager.patch Fix memory leak in manager lixingcong <> no 2021-03-17
backport/09-fix-check-for-return-value-of-open-when-redirecting-to.patch fix check for return value of open when redirecting to null device
(cherry picked from commit 8bcffa54b58411a2beda6acabd5b849518c66841)
Gilles Depeyrot <> no 2021-07-15
backport/10-close-socket-to-avoid-memory-leak-when-error-occurs.patch close socket to avoid memory leak when error occurs
(cherry picked from commit a19328a977464bd3748a699159351ab4b07f4df2)
Gilles Depeyrot <> no 2021-07-15
backport/11-apply-memory-leak-fix-for-create_and_bind-to-create_se.patch apply memory leak fix for create_and_bind to create_server_socket
(cherry picked from commit 49ead5e570f27296a880005b9a2d15541b93b407)
Gilles Depeyrot <> no 2021-07-15
backport/12-properly-terminate-string-which-recvfrom-does-not-do.patch properly terminate string which recvfrom does not do
(cherry picked from commit 0a7d178134a8081e5e24931d3ecbe4d1008def63)
Gilles Depeyrot <> no 2021-07-15
backport/13-fix-order-of-tests-to-avoid-strstr-on-NULL-value.patch fix order of tests to avoid strstr on NULL value
(cherry picked from commit abcf85e98300762e4f31953cecf635ab182ef859)
Gilles Depeyrot <> no 2021-07-15
backport/14-Remove-the-fragmentation-check-for-the-first-AEAD-chun.patch Remove the fragmentation check for the first AEAD chunk
(cherry picked from commit b9117559000e1bdee4a84383c537ca5b4b7fe8dc)
Max Lv <> no 2021-08-19
backport/15-Disable-fragmentation-for-all-the-outgoing-UDP-packets.patch Disable fragmentation for all the outgoing UDP packets
(cherry picked from commit 46382c23fac8fbabb62130ef49d3f0bf4c807b43)
Max Lv <> no 2022-02-15
backport/16-fix-maybe-uninitialized-errors.patch fix maybe-uninitialized errors
Set {listen,server}_sock to -1 when needed as already done in
src/manager.c by commit ecf1fcc84594b09ed2d61e3677cd8e62bd897ccb to
avoid the following build failure:

local.c: In function 'create_and_bind':
local.c:218:12: error: 'listen_sock' may be used uninitialized in this function [-Werror=maybe-uninitialized]
218 | return listen_sock;
| ^~~~~~~~~~~


(cherry picked from commit 0c23224e926463b1097414979367655a27fa6d60)
Fabrice Fontaine <> no 2022-04-07
backport/18-Fix-mptcp-on-kernels-with-mainlined-MPTCP.patch Fix --mptcp on kernels with mainlined MPTCP. Mainlined MPTCP on Linux 5.6+ is enabled with IPPROTO_MPTCP rather than setsockopt.

(cherry picked from commit 1630764b02bbcbf0980d8080ea6ee8fd9b2cabf0)
Tristan Schmelcher <> no 2022-05-21
backport/19-Redir-UDP-send-back-sockets-should-always-be-IPv6.patch Redir UDP send back sockets should always be IPv6
ref shadowsocks/shadowsocks-rust#855

When receiving UDP packets from remote servers, Redir will have to
create transparent sockets to bind() on those target addresses and then
relay data back to the local client. Target addresses may be IPv4 or
IPv6 addresses, so we may have to create that transprent sockets based
on the target addresses' family.

The most simpliest and easiest way is to always create IPv6 sockets and
converts IPv4 binding addresses and peer addresses to IPv4-mapped-IPv6.

(cherry picked from commit 01dd7df1da98710a619a4a853f6f357dfc46f60f)
zonyitoo <> no 2022-06-04
backport/20-Detect-kernel-support-for-MPTCP-at-runtime.patch Detect kernel support for MPTCP at runtime
(cherry picked from commit d61d09aa0caecf31a39660f3a8f0676e53db129e)
Maxim Galaganov <> no 2022-06-22

All known versions for source package 'shadowsocks-libev'