Doing some initial digging into the opkg archives, and pulling all the versions of redsocks from 22.03.0 to present, and checking for their dependencies, I get:
22.03.0/control.tar.gz: Depends: libc, libevent2-core7
22.03.1/control.tar.gz: Depends: libc, libevent2-core7
22.03.2/control.tar.gz: Depends: libc, libevent2-core7
22.03.3/control.tar.gz: Depends: libc, libevent2-core7
22.03.4/control.tar.gz: Depends: libc, libevent2-core7
22.03.5/control.tar.gz: Depends: libc, libevent2-core7
22.03.6/control.tar.gz: Depends: libc, libevent2-core7
22.03.7/control.tar.gz: Depends: libc, libevent2-core7
23.05.0/control.tar.gz: Depends: libc, libevent2-core7
23.05.1/control.tar.gz: Depends: libc, libevent2-core7
23.05.2/control.tar.gz: Depends: libc, libevent2-core7
23.05.3/control.tar.gz: Depends: libc, libevent2-core7
23.05.4/control.tar.gz: Depends: libc, libevent2-core7
23.05.5/control.tar.gz: Depends: libc, libevent2-core7
24.10.0/control.tar.gz: Depends: libc, libevent2-core7
24.10.1/control.tar.gz: Depends: libc, libevent2-core7
24.10.2/control.tar.gz: Depends: libc, libevent2-core7
i.e. there doesn't seem to be much change. The only thing I can imagine changing is the compiler and/or compiler options. Anyway, will try step through the various versions to see if I get any different behaviour.
Ok, I downloaded all of the libevent2-core7 and redsocks builds from packages as far back as 22.03.0.
I installed them one at a time (working backwards) on my Xiaomi 4A gigabit (mipsel_24kc) router, running 24.10.0.
for release in $(ls -d 2* | sort -rh); do
echo $release
scp -O $release/{redsocks,libevent}* ap2:/tmp
read
done
On my PC, and:
opkg install libevent*.ipk; opkg install redsocks*.ipk
opkg remove redsocks libevent2-core7; rm redsocks* libevent*
on the Xiaomi.
I was hoping to see that at least one version worked, but every single instance resulted in a segmentation fault.
sha1sum 2*/*.ipk | sort
9078a81a583765bda1ab7fea3a8945cd5a83037c 24.10.0/libevent2-core7_2.1.12-r2_mipsel_24kc.ipk
9078a81a583765bda1ab7fea3a8945cd5a83037c 24.10.1/libevent2-core7_2.1.12-r2_mipsel_24kc.ipk
9078a81a583765bda1ab7fea3a8945cd5a83037c 24.10.2/libevent2-core7_2.1.12-r2_mipsel_24kc.ipk
d2678c2f63c77889e855356147fb328cde1e2c3b 23.05.0/redsocks_0.5-2_mipsel_24kc.ipk
d2678c2f63c77889e855356147fb328cde1e2c3b 23.05.1/redsocks_0.5-2_mipsel_24kc.ipk
d2678c2f63c77889e855356147fb328cde1e2c3b 23.05.2/redsocks_0.5-2_mipsel_24kc.ipk
d2678c2f63c77889e855356147fb328cde1e2c3b 23.05.3/redsocks_0.5-2_mipsel_24kc.ipk
d2678c2f63c77889e855356147fb328cde1e2c3b 23.05.4/redsocks_0.5-2_mipsel_24kc.ipk
d2678c2f63c77889e855356147fb328cde1e2c3b 23.05.5/redsocks_0.5-2_mipsel_24kc.ipk
df72ecee6c87c738ccb3d4c4d3075798c38e1934 23.05.0/libevent2-core7_2.1.12-1_mipsel_24kc.ipk
df72ecee6c87c738ccb3d4c4d3075798c38e1934 23.05.1/libevent2-core7_2.1.12-1_mipsel_24kc.ipk
df72ecee6c87c738ccb3d4c4d3075798c38e1934 23.05.2/libevent2-core7_2.1.12-1_mipsel_24kc.ipk
df72ecee6c87c738ccb3d4c4d3075798c38e1934 23.05.3/libevent2-core7_2.1.12-1_mipsel_24kc.ipk
df72ecee6c87c738ccb3d4c4d3075798c38e1934 23.05.4/libevent2-core7_2.1.12-1_mipsel_24kc.ipk
df72ecee6c87c738ccb3d4c4d3075798c38e1934 23.05.5/libevent2-core7_2.1.12-1_mipsel_24kc.ipk
e34307678eeb99afb8ba31ee8efdc5afa253f871 24.10.0/redsocks_0.5-r2_mipsel_24kc.ipk
e34307678eeb99afb8ba31ee8efdc5afa253f871 24.10.1/redsocks_0.5-r2_mipsel_24kc.ipk
e34307678eeb99afb8ba31ee8efdc5afa253f871 24.10.2/redsocks_0.5-r2_mipsel_24kc.ipk
f6eb77db40acc681e318b30f37ab8f1af6fa587e 22.03.0/redsocks_0.5-2_mipsel_24kc.ipk
f6eb77db40acc681e318b30f37ab8f1af6fa587e 22.03.1/redsocks_0.5-2_mipsel_24kc.ipk
f6eb77db40acc681e318b30f37ab8f1af6fa587e 22.03.2/redsocks_0.5-2_mipsel_24kc.ipk
f6eb77db40acc681e318b30f37ab8f1af6fa587e 22.03.3/redsocks_0.5-2_mipsel_24kc.ipk
f6eb77db40acc681e318b30f37ab8f1af6fa587e 22.03.4/redsocks_0.5-2_mipsel_24kc.ipk
f6eb77db40acc681e318b30f37ab8f1af6fa587e 22.03.5/redsocks_0.5-2_mipsel_24kc.ipk
f6eb77db40acc681e318b30f37ab8f1af6fa587e 22.03.6/redsocks_0.5-2_mipsel_24kc.ipk
f6eb77db40acc681e318b30f37ab8f1af6fa587e 22.03.7/redsocks_0.5-2_mipsel_24kc.ipk
fa3593804af3c5243db19ea87b04828b95a20e21 22.03.0/libevent2-core7_2.1.12-1_mipsel_24kc.ipk
fa3593804af3c5243db19ea87b04828b95a20e21 22.03.1/libevent2-core7_2.1.12-1_mipsel_24kc.ipk
fa3593804af3c5243db19ea87b04828b95a20e21 22.03.2/libevent2-core7_2.1.12-1_mipsel_24kc.ipk
fa3593804af3c5243db19ea87b04828b95a20e21 22.03.3/libevent2-core7_2.1.12-1_mipsel_24kc.ipk
fa3593804af3c5243db19ea87b04828b95a20e21 22.03.4/libevent2-core7_2.1.12-1_mipsel_24kc.ipk
fa3593804af3c5243db19ea87b04828b95a20e21 22.03.5/libevent2-core7_2.1.12-1_mipsel_24kc.ipk
fa3593804af3c5243db19ea87b04828b95a20e21 22.03.6/libevent2-core7_2.1.12-1_mipsel_24kc.ipk
fa3593804af3c5243db19ea87b04828b95a20e21 22.03.7/libevent2-core7_2.1.12-1_mipsel_24kc.ipk
Just to confirm that there were actually some changes between those versions
I clearly could have skipped some steps, had I checked this before.