Skip to content
Snippets Groups Projects
Commit b9005bca authored by Rahul Thakur's avatar Rahul Thakur
Browse files

xtables-addon: fix compilation for linux versions 5.6 onwards

the proc_ops is introduced in 5.6 and compatibility with earlier
versions is managed by xt_compat.h, update the patch accordingly
parent 75cd852e
No related branches found
No related tags found
1 merge request!104xtables-addon: fix compilation for linux versions 5.6 onwards
......@@ -253,7 +253,7 @@ diff -uNr xtables-addons-3.24.orig/extensions/Mbuild xtables-addons-3.24/extensi
diff -uNr xtables-addons-3.24.orig/extensions/xt_mpeg2ts.c xtables-addons-3.24/extensions/xt_mpeg2ts.c
--- xtables-addons-3.24.orig/extensions/xt_mpeg2ts.c 1970-01-01 01:00:00.000000000 +0100
+++ xtables-addons-3.24/extensions/xt_mpeg2ts.c 2024-05-24 13:17:47.013742067 +0200
@@ -0,0 +1,1449 @@
@@ -0,0 +1,1448 @@
+/*
+ * MPEG2 TS match extension "mpeg2ts" for Xtables.
+ *
......@@ -326,7 +326,7 @@ diff -uNr xtables-addons-3.24.orig/extensions/xt_mpeg2ts.c xtables-addons-3.24/e
+
+/* Proc related */
+static struct proc_dir_entry *mpeg2ts_procdir;
+static const struct file_operations dl_file_ops;
+static const struct proc_ops dl_file_ops;
+
+/* Message level instrumentation based upon the device driver message
+ * levels see include/linux/netdevice.h.
......@@ -1632,12 +1632,11 @@ diff -uNr xtables-addons-3.24.orig/extensions/xt_mpeg2ts.c xtables-addons-3.24/e
+ return ret;
+}
+
+static const struct file_operations dl_file_ops = {
+ .owner = THIS_MODULE,
+ .open = mpeg2ts_proc_open,
+ .read = seq_read,
+ .llseek = seq_lseek,
+ .release = seq_release
+static const struct proc_ops dl_file_ops = {
+ .proc_open = mpeg2ts_proc_open,
+ .proc_read = seq_read,
+ .proc_lseek = seq_lseek,
+ .proc_release = seq_release
+};
+
+/*** Module init & exit ***/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment