I used the following patch to manage all cases, see attached.
Have fun, Adrien
Description: Support Linux >= 6.8 strlcpy was removed in Linux 6.8, and we should use strscpy. Returned value was not checked before, so we keep it like this. Author: Adrien CLERC <bugs-deb...@antipoul.fr> Last-Update: 2024-06-23 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ Index: nat-rtsp-0.7+5.3/nf_conntrack_rtsp.c =================================================================== --- nat-rtsp-0.7+5.3.orig/nf_conntrack_rtsp.c +++ nat-rtsp-0.7+5.3/nf_conntrack_rtsp.c @@ -549,7 +549,12 @@ init(void) sprintf(tmpname, "rtsp-%d", i); } -#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,0) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,8,0) + // strlcpy was removed from Linux from 6.8-rc1 + // see https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=57f22c8dab6b266ae36b89b073a4a33dea71e762 + strscpy(hlpr->name, tmpname, sizeof(hlpr->name)); +#elif LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,0) + // Keeping legacy code strlcpy(hlpr->name, tmpname, sizeof(hlpr->name)); #else hlpr->name = tmpname;
linux_6_8.diff