kernel: add a patch to allow disabling processing of the netfilter "filter" table...
[openwrt.git] / package / network / utils / xtables-addons / patches-1.x / 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