xtables-addons: update to v2.1, fix compilation against Linux 3.7.2, refresh patches
[openwrt/svn-archive/archive.git] / net / xtables-addons / patches / 101-rtsp-linux-3.6-compat.patch
1 --- a/extensions/rtsp/nf_conntrack_rtsp.c
2 +++ b/extensions/rtsp/nf_conntrack_rtsp.c
3 @@ -28,6 +28,7 @@
4 * - Port to new NF API
5 */
6
7 +#include <linux/version.h>
8 #include <linux/module.h>
9 #include <linux/netfilter.h>
10 #include <linux/ip.h>
11 @@ -496,7 +497,11 @@ init(void)
12 } else {
13 sprintf(tmpname, "rtsp-%d", i);
14 }
15 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,0)
16 + strncpy(hlpr->name, tmpname, sizeof(hlpr->name));
17 +#else
18 hlpr->name = tmpname;
19 +#endif
20
21 pr_debug("port #%d: %d\n", i, ports[i]);
22