Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package udp2raw-tunnel for openSUSE:Factory
checked in at 2026-12-01 17:00:49
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/udp2raw-tunnel (Old)
and /work/SRC/openSUSE:Factory/.udp2raw-tunnel.new.1340718 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "udp2raw-tunnel"
Tue Dec 1 17:00:49 2026 rev:7 rq:1401914 version:20261129.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/udp2raw-tunnel/udp2raw-tunnel.changes
2026-03-16 14:19:24.814477297 +0100
+++
/work/SRC/openSUSE:Factory/.udp2raw-tunnel.new.1340718/udp2raw-tunnel.changes
2026-12-01 17:04:18.340556712 +0100
@@ -1,0 +2,6 @@
+Mon Nov 30 10:27:28 UTC 2026 - Martin Hauke <[email protected]>
+
+- Update to version 20261129.0
+ * Fix of issue GH#525.
+
+-------------------------------------------------------------------
Old:
----
udp2raw-tunnel-20230206.0.tar.gz
New:
----
udp2raw-tunnel-20261129.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ udp2raw-tunnel.spec ++++++
--- /var/tmp/diff_new_pack.iS9GUJ/_old 2026-12-01 17:04:18.996584422 +0100
+++ /var/tmp/diff_new_pack.iS9GUJ/_new 2026-12-01 17:04:18.997584464 +0100
@@ -18,7 +18,7 @@
Name: udp2raw-tunnel
-Version: 20230206.0
+Version: 20261129.0
Release: 0
Summary: UDP over TCP/ICMP/UDP tunnel
# The following files are adapted from PolarSSL 1.3.19 (GPL-2.0)
++++++ udp2raw-tunnel-20230206.0.tar.gz -> udp2raw-tunnel-20261129.0.tar.gz
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/udp2raw-20230206.0/CMakeLists.txt
new/udp2raw-20261129.0/CMakeLists.txt
--- old/udp2raw-20230206.0/CMakeLists.txt 2023-02-07 13:12:02.000000000
+0100
+++ new/udp2raw-20261129.0/CMakeLists.txt 2026-11-29 18:14:19.000000000
+0100
@@ -1,4 +1,7 @@
#note: experimental
+# currently only used for generating `compile_commands.json` for clangd.
+# to build this project, it's suggested to use `makefile` instead
+
cmake_minimum_required(VERSION 3.7)
project(udp2raw)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/udp2raw-20230206.0/Dockerfile
new/udp2raw-20261129.0/Dockerfile
--- old/udp2raw-20230206.0/Dockerfile 2023-02-07 13:12:02.000000000 +0100
+++ new/udp2raw-20261129.0/Dockerfile 1970-01-01 01:00:00.000000000 +0100
@@ -1,13 +0,0 @@
-FROM alpine:3.6 as builder
-
-WORKDIR /
-
-RUN apk add --no-cache git build-base linux-headers && \
- git clone https://github.com/wangyu-/udp2raw-tunnel.git && \
- cd udp2raw-tunnel && \
- make dynamic
-
-FROM alpine:3.6
-RUN apk add --no-cache libstdc++ iptables
-COPY --from=builder /udp2raw-tunnel/udp2raw_dynamic /bin/
-ENTRYPOINT [ "/bin/udp2raw_dynamic" ]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/udp2raw-20230206.0/ISSUE_TEMPLATE.md
new/udp2raw-20261129.0/ISSUE_TEMPLATE.md
--- old/udp2raw-20230206.0/ISSUE_TEMPLATE.md 2023-02-07 13:12:02.000000000
+0100
+++ new/udp2raw-20261129.0/ISSUE_TEMPLATE.md 2026-11-29 18:14:19.000000000
+0100
@@ -1 +1 @@
-English Only (except for bug reporting).
+English Only.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/udp2raw-20230206.0/README.md
new/udp2raw-20261129.0/README.md
--- old/udp2raw-20230206.0/README.md 2023-02-07 13:12:02.000000000 +0100
+++ new/udp2raw-20261129.0/README.md 2026-11-29 18:14:19.000000000 +0100
@@ -81,7 +81,7 @@
Now,an encrypted raw tunnel has been established between client and server
through TCP port 4096. Connecting to UDP port 3333 at the client side is
equivalent to connecting to port 7777 at the server side. No UDP traffic will
be exposed.
### Note
-To run on Android, check [Android_Guide](/doc/android_guide.md)
+To run on Android, check
[Android_Guide](https://github.com/wangyu-/udp2raw/wiki/Android-Guide)
`-a` option automatically adds an iptables rule (or a few iptables rules) for
you, udp2raw relies on this iptables rule to work stably. Be aware you dont
forget `-a` (its a common mistake). If you dont want udp2raw to add iptables
rule automatically, you can add it manually(take a look at `-g` option) and
omit `-a`.
@@ -90,7 +90,7 @@
### Usage
```
udp2raw-tunnel
-git version:6e1df4b39f build date:Oct 24 2017 09:21:15
+git version:4623f878e0 build date:Nov 3 2024 23:15:46
repository: https://github.com/wangyu-/udp2raw-tunnel
usage:
@@ -98,14 +98,16 @@
run as server : ./this_program -s -l server_listen_ip:server_port -r
remote_address:remote_port [options]
common options,these options must be same on both side:
- --raw-mode <string> avaliable
values:faketcp(default),udp,icmp
+ --raw-mode <string> available
values:faketcp(default),udp,icmp and easy-faketcp
-k,--key <string> password to gen symetric
key,default:"secret key"
- --cipher-mode <string> avaliable
values:aes128cbc(default),xor,none
- --auth-mode <string> avaliable
values:hmac_sha1,md5(default),crc32,simple,none
+ --cipher-mode <string> available
values:aes128cfb,aes128cbc(default),xor,none
+ --auth-mode <string> available
values:hmac_sha1,md5(default),crc32,simple,none
-a,--auto-rule auto add (and delete) iptables rule
-g,--gen-rule generate iptables rule then exit,so
that you can copy and
add it manually.overrides -a
--disable-anti-replay disable anti-replay,not suggested
+ --fix-gro try to fix huge packet caused by
GRO. this option is at an early stage.
+ make sure client and server are at
same version.
client options:
--source-ip <ip> force source-ip for raw socket
--source-port <port> force source-port for raw
socket,tcp/udp only
@@ -121,6 +123,7 @@
--disable-color disable log color
--disable-bpf disable the kernel space filter,most
time its not necessary
unless you suspect there is a bug
+ --dev <string> bind raw socket to a device, not
necessary but improves performance
--sock-buf <number> buf size for socket,>=10 and
<=10240,unit:kbyte,default:1024
--force-sock-buf bypass system limitation while
setting sock-buf
--seq-mode <number> seq increase mode for faketcp:
@@ -133,11 +136,14 @@
--lower-level <string> send packets at OSI level 2,
format:'if_name#dest_mac_adress'
ie:'eth0#00:23:45:67:89:b9'.or try
'--lower-level auto' to obtain
the parameter automatically,specify
it manually if 'auto' failed
+ --wait-lock wait for xtables lock while invoking
iptables, need iptables v1.4.20+
--gen-add generate iptables rule and add it
permanently,then exit.overrides -g
--keep-rule monitor iptables and auto re-add if
necessary.implys -a
+ --hb-len <number> length of heart-beat packet, >=0 and
<=1500
+ --mtu-warn <number> mtu warning threshold, unit:byte,
default:1375
--clear clear any iptables rules added by
this program.overrides everything
+ --retry-on-error retry on error, allow to start
udp2raw before network is initialized
-h,--help print this help message
-
```
### Iptables rules,`-a` and `-g`
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/udp2raw-20230206.0/common.cpp
new/udp2raw-20261129.0/common.cpp
--- old/udp2raw-20230206.0/common.cpp 2023-02-07 13:12:02.000000000 +0100
+++ new/udp2raw-20261129.0/common.cpp 2026-11-29 18:14:19.000000000 +0100
@@ -1127,8 +1127,8 @@
u32_t djb2(unsigned char *str, int len) {
u32_t hash = 5381;
int c;
- int i = 0;
- while (c = *str++, i++ != len) {
+ for (int i=0; i<len ;i++) {
+ c = *(str++);
hash = ((hash << 5) + hash) ^ c; /* (hash * 33) ^ c */
}
@@ -1139,8 +1139,8 @@
u32_t sdbm(unsigned char *str, int len) {
u32_t hash = 0;
int c;
- int i = 0;
- while (c = *str++, i++ != len) {
+ for (int i=0; i<len ;i++) {
+ c = *(str++);
hash = c + (hash << 6) + (hash << 16) - hash;
}
// hash=htonl(hash);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/udp2raw-20230206.0/connection.cpp
new/udp2raw-20261129.0/connection.cpp
--- old/udp2raw-20230206.0/connection.cpp 2023-02-07 13:12:02.000000000
+0100
+++ new/udp2raw-20261129.0/connection.cpp 2026-11-29 18:14:19.000000000
+0100
@@ -435,7 +435,7 @@
if (cipher_mode == cipher_xor) {
send_data_buf2[0] ^= gro_xor[0];
send_data_buf2[1] ^= gro_xor[1];
- } else if (cipher_mode == cipher_aes128cbc || cipher_mode ==
cipher_aes128cbc) {
+ } else if (cipher_mode == cipher_aes128cbc || cipher_mode ==
cipher_aes128cfb) {
aes_ecb_encrypt1(send_data_buf2);
}
}
@@ -586,7 +586,7 @@
if (cipher_mode == cipher_xor) {
recv_data[0] ^= gro_xor[0];
recv_data[1] ^= gro_xor[1];
- } else if (cipher_mode == cipher_aes128cbc || cipher_mode ==
cipher_aes128cbc) {
+ } else if (cipher_mode == cipher_aes128cbc || cipher_mode ==
cipher_aes128cfb) {
aes_ecb_decrypt1(recv_data);
}
single_len = read_u16(recv_data);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/udp2raw-20230206.0/doc/README.zh-cn.md
new/udp2raw-20261129.0/doc/README.zh-cn.md
--- old/udp2raw-20230206.0/doc/README.zh-cn.md 2023-02-07 13:12:02.000000000
+0100
+++ new/udp2raw-20261129.0/doc/README.zh-cn.md 2026-11-29 18:14:19.000000000
+0100
@@ -103,7 +103,7 @@
### 命令选项
```
udp2raw-tunnel
-git version:6e1df4b39f build date:Oct 24 2017 09:21:15
+git version:4623f878e0 build date:Nov 3 2024 23:15:46
repository: https://github.com/wangyu-/udp2raw-tunnel
usage:
@@ -111,14 +111,16 @@
run as server : ./this_program -s -l server_listen_ip:server_port -r
remote_address:remote_port [options]
common options,these options must be same on both side:
- --raw-mode <string> available
values:faketcp(default),udp,icmp
+ --raw-mode <string> available
values:faketcp(default),udp,icmp and easy-faketcp
-k,--key <string> password to gen symetric
key,default:"secret key"
- --cipher-mode <string> available
values:aes128cbc(default),xor,none
+ --cipher-mode <string> available
values:aes128cfb,aes128cbc(default),xor,none
--auth-mode <string> available
values:hmac_sha1,md5(default),crc32,simple,none
-a,--auto-rule auto add (and delete) iptables rule
-g,--gen-rule generate iptables rule then exit,so
that you can copy and
add it manually.overrides -a
--disable-anti-replay disable anti-replay,not suggested
+ --fix-gro try to fix huge packet caused by
GRO. this option is at an early stage.
+ make sure client and server are at
same version.
client options:
--source-ip <ip> force source-ip for raw socket
--source-port <port> force source-port for raw
socket,tcp/udp only
@@ -134,6 +136,7 @@
--disable-color disable log color
--disable-bpf disable the kernel space filter,most
time its not necessary
unless you suspect there is a bug
+ --dev <string> bind raw socket to a device, not
necessary but improves performance
--sock-buf <number> buf size for socket,>=10 and
<=10240,unit:kbyte,default:1024
--force-sock-buf bypass system limitation while
setting sock-buf
--seq-mode <number> seq increase mode for faketcp:
@@ -146,11 +149,14 @@
--lower-level <string> send packets at OSI level 2,
format:'if_name#dest_mac_adress'
ie:'eth0#00:23:45:67:89:b9'.or try
'--lower-level auto' to obtain
the parameter automatically,specify
it manually if 'auto' failed
+ --wait-lock wait for xtables lock while invoking
iptables, need iptables v1.4.20+
--gen-add generate iptables rule and add it
permanently,then exit.overrides -g
--keep-rule monitor iptables and auto re-add if
necessary.implys -a
+ --hb-len <number> length of heart-beat packet, >=0 and
<=1500
+ --mtu-warn <number> mtu warning threshold, unit:byte,
default:1375
--clear clear any iptables rules added by
this program.overrides everything
+ --retry-on-error retry on error, allow to start
udp2raw before network is initialized
-h,--help print this help message
-
```
### iptables 规则,`-a`和`-g`
@@ -269,3 +275,4 @@
https://github.com/wangyu-/udp2raw-tunnel/wiki
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/udp2raw-20230206.0/main.cpp
new/udp2raw-20261129.0/main.cpp
--- old/udp2raw-20230206.0/main.cpp 2023-02-07 13:12:02.000000000 +0100
+++ new/udp2raw-20261129.0/main.cpp 2026-11-29 18:14:19.000000000 +0100
@@ -40,19 +40,19 @@
pre_process_arg(argc, argv);
+ ev_signal signal_watcher_sigpipe;
+ ev_signal signal_watcher_sigterm;
+ ev_signal signal_watcher_sigint;
+
if (program_mode == client_mode) {
struct ev_loop *loop = ev_default_loop(0);
#if !defined(__MINGW32__)
- ev_signal signal_watcher_sigpipe;
ev_signal_init(&signal_watcher_sigpipe, sigpipe_cb, SIGPIPE);
ev_signal_start(loop, &signal_watcher_sigpipe);
#endif
-
- ev_signal signal_watcher_sigterm;
ev_signal_init(&signal_watcher_sigterm, sigterm_cb, SIGTERM);
ev_signal_start(loop, &signal_watcher_sigterm);
- ev_signal signal_watcher_sigint;
ev_signal_init(&signal_watcher_sigint, sigint_cb, SIGINT);
ev_signal_start(loop, &signal_watcher_sigint);
} else {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/udp2raw-20230206.0/makefile
new/udp2raw-20261129.0/makefile
--- old/udp2raw-20230206.0/makefile 2023-02-07 13:12:02.000000000 +0100
+++ new/udp2raw-20261129.0/makefile 2026-11-29 18:14:19.000000000 +0100
@@ -3,8 +3,9 @@
cc_mips24kc_be=/toolchains/lede-sdk-17.01.2-ar71xx-generic_gcc-5.4.0_musl-1.1.16.Linux-x86_64/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl-1.1.16/bin/mips-openwrt-linux-musl-g++
cc_mips24kc_le=/toolchains/lede-sdk-17.01.2-ramips-mt7621_gcc-5.4.0_musl-1.1.16.Linux-x86_64/staging_dir/toolchain-mipsel_24kc_gcc-5.4.0_musl-1.1.16/bin/mipsel-openwrt-linux-musl-g++
cc_arm=
/toolchains/lede-sdk-17.01.2-bcm53xx_gcc-5.4.0_musl-1.1.16_eabi.Linux-x86_64/staging_dir/toolchain-arm_cortex-a9_gcc-5.4.0_musl-1.1.16_eabi/bin/arm-openwrt-linux-c++
+cc_arm64=/toolchains/lede-sdk-17.01.2-arm64_gcc-5.4.0_musl-1.1.16.Linux-x86_64/staging_dir/toolchain-aarch64_armv8-a_gcc-5.4.0_musl-1.1.16/bin/aarch64-openwrt-linux-c++
cc_mingw_cross=i686-w64-mingw32-g++-posix
-cc_mac_cross=o64-clang++ -stdlib=libc++
+cc_mac_cross=o64-clang++ -stdlib=libc++ -arch x86_64 -arch arm64
-mmacosx-version-min=10.13
cc_x86=/toolchains/lede-sdk-17.01.2-x86-generic_gcc-5.4.0_musl-1.1.16.Linux-x86_64/staging_dir/toolchain-i386_pentium4_gcc-5.4.0_musl-1.1.16/bin/i486-openwrt-linux-c++
cc_amd64=/toolchains/lede-sdk-17.01.2-x86-64_gcc-5.4.0_musl-1.1.16.Linux-x86_64/staging_dir/toolchain-x86_64_gcc-5.4.0_musl-1.1.16/bin/x86_64-openwrt-linux-c++
#cc_bcm2708=/home/wangyu/raspberry/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++
@@ -23,7 +24,7 @@
NAME=udp2raw
-TARGETS=amd64 arm amd64_hw_aes arm_asm_aes mips24kc_be mips24kc_be_asm_aes x86
x86_asm_aes mips24kc_le mips24kc_le_asm_aes
+TARGETS=amd64 arm amd64_hw_aes arm_asm_aes mips24kc_be mips24kc_be_asm_aes x86
x86_asm_aes mips24kc_le mips24kc_le_asm_aes arm64
TAR=${NAME}_binaries.tar.gz `echo ${TARGETS}|sed -r 's/([^ ]+)/${NAME}_\1/g'`
version.txt
@@ -84,6 +85,8 @@
${cc_arm} -o ${NAME}_$@ -I. ${SOURCES} ${FLAGS} -lrt -static -O2
-lgcc_eh
arm_asm_aes:git_version
${cc_arm} -o ${NAME}_$@ -I. ${SOURCES_AES_ACC} ${FLAGS} -lrt
-static -O2 lib/aes_acc/asm/arm.S -lgcc_eh
+arm64:git_version
+ ${cc_arm64} -o ${NAME}_$@ -I. ${SOURCES} ${FLAGS} -lrt -static
-O2 -lgcc_eh
release: ${TARGETS}
cp git_version.h version.txt
@@ -103,7 +106,7 @@
${cc_local} -o ${NAME}_$@ -I. ${SOURCES} ${PCAP} ${FLAGS}
-lrt -ggdb -static -O2 ${MP}
freebsd:git_version
- ${cc_local} -o ${NAME}_$@ -I. ${SOURCES} ${PCAP} ${FLAGS} -lrt
-ggdb -static -O2 ${MP}
+ ${cc_local} -o ${NAME}_$@ -I. ${SOURCES} ${PCAP} ${FLAGS} -lrt
-ggdb -static -libverbs -O2 ${MP}
mac:git_version
${cc_local} -o ${NAME}_$@ -I. ${SOURCES} ${PCAP} ${FLAGS}
-ggdb -O2 ${MP}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/udp2raw-20230206.0/network.cpp
new/udp2raw-20261129.0/network.cpp
--- old/udp2raw-20230206.0/network.cpp 2023-02-07 13:12:02.000000000 +0100
+++ new/udp2raw-20261129.0/network.cpp 2026-11-29 18:14:19.000000000 +0100
@@ -702,7 +702,7 @@
}
}
- int dummy;
+ int dummy=0;
int ret = setsockopt(raw_recv_fd, SOL_SOCKET, SO_DETACH_FILTER, &dummy,
sizeof(dummy)); // in case i forgot to remove
if (ret != 0) {
@@ -841,7 +841,7 @@
void remove_filter() {
filter_port = 0;
#ifdef UDP2RAW_LINUX
- int dummy;
+ int dummy=0;
int ret = setsockopt(raw_recv_fd, SOL_SOCKET, SO_DETACH_FILTER, &dummy,
sizeof(dummy));
if (ret != 0) {
mylog(log_debug, "error remove fiter\n");
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/udp2raw-20230206.0/network.h
new/udp2raw-20261129.0/network.h
--- old/udp2raw-20230206.0/network.h 2023-02-07 13:12:02.000000000 +0100
+++ new/udp2raw-20261129.0/network.h 2026-11-29 18:14:19.000000000 +0100
@@ -226,12 +226,12 @@
bool has_ts;
+ i32_t data_len;
+
#ifdef UDP2RAW_LINUX
sockaddr_ll addr_ll;
#endif
- i32_t data_len;
-
packet_info_t();
};