- fix building with kernel 5.2
[packages/xtables-addons.git] / kernel-5.2.patch
1 --- xtables-addons-3.3/extensions/pknock/xt_pknock.c~   2019-03-07 17:24:08.000000000 +0800
2 +++ xtables-addons-3.3/extensions/pknock/xt_pknock.c    2019-07-12 21:47:17.646586586 +0800
3 @@ -1125,7 +1125,9 @@
4  
5         crypto.size = crypto_shash_digestsize(crypto.tfm);
6         crypto.desc.tfm = crypto.tfm;
7 +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 2, 0)
8         crypto.desc.flags = 0;
9 +#endif
10  
11         pde = proc_mkdir("xt_pknock", init_net.proc_net);
12         if (pde == NULL) {
13 --- xtables-addons-3.3/extensions/xt_SYSRQ.c~   2019-03-07 17:24:08.000000000 +0800
14 +++ xtables-addons-3.3/extensions/xt_SYSRQ.c    2019-07-12 21:48:48.456584594 +0800
15 @@ -114,7 +114,9 @@
16         }
17  
18         desc.tfm   = sysrq_tfm;
19 +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 2, 0)
20         desc.flags = 0;
21 +#endif
22         ret = crypto_shash_init(&desc);
23         if (ret != 0)
24                 goto hash_fail;
This page took 0.055825 seconds and 3 git commands to generate.