1 --- xtables-addons-3.19/extensions/pknock/xt_pknock.c~ 2022-02-01 18:24:03.000000000 +0100
2 +++ xtables-addons-3.19/extensions/pknock/xt_pknock.c 2022-04-02 13:22:18.309078729 +0200
4 int ret = seq_open(file, &pknock_seq_ops);
6 struct seq_file *sf = file->private_data;
7 +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 17, 0)
8 sf->private = PDE_DATA(inode);
10 + sf->private = pde_data(inode);
15 --- xtables-addons-3.19/extensions/xt_condition.c~ 2022-02-01 18:24:03.000000000 +0100
16 +++ xtables-addons-3.19/extensions/xt_condition.c 2022-04-02 13:25:17.366962445 +0200
19 static int condition_proc_open(struct inode *inode, struct file *file)
21 +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 17, 0)
22 return single_open(file, condition_proc_show, PDE_DATA(inode));
24 + return single_open(file, condition_proc_show, pde_data(inode));
29 condition_proc_write(struct file *file, const char __user *buffer,
30 size_t length, loff_t *loff)
32 +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 17, 0)
33 struct condition_variable *var = PDE_DATA(file_inode(file));
35 + struct condition_variable *var = pde_data(file_inode(file));
40 --- xtables-addons-3.19/extensions/xt_quota2.c~ 2022-02-01 18:24:03.000000000 +0100
41 +++ xtables-addons-3.19/extensions/xt_quota2.c 2022-04-02 13:26:27.276139534 +0200
44 static int quota_proc_open(struct inode *inode, struct file *file)
46 +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 17, 0)
47 return single_open(file, quota_proc_show, PDE_DATA(inode));
49 + return single_open(file, quota_proc_show, pde_data(inode));
54 quota_proc_write(struct file *file, const char __user *input,
55 size_t size, loff_t *loff)
57 +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 17, 0)
58 struct xt_quota_counter *e = PDE_DATA(file_inode(file));
60 + struct xt_quota_counter *e = pde_data(file_inode(file));
62 char buf[sizeof("+-18446744073709551616")];
64 if (size > sizeof(buf))