You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
871 B

  1. From 3ea761a1ed338241fbc79bef8e433307e108b6cd Mon Sep 17 00:00:00 2001
  2. From: Jan Engelhardt <jengelh@inai.de>
  3. Date: Tue, 14 Aug 2018 14:29:30 +0200
  4. Subject: [PATCH] build: add support for Linux 4.18
  5. ---
  6. extensions/xt_DNETMAP.c | 4 ++++
  7. 1 file changed, 4 insertions(+)
  8. diff --git a/extensions/xt_DNETMAP.c b/extensions/xt_DNETMAP.c
  9. index 1b415c3..de7d4ec 100644
  10. --- a/extensions/xt_DNETMAP.c
  11. +++ b/extensions/xt_DNETMAP.c
  12. @@ -367,7 +367,11 @@ dnetmap_tg(struct sk_buff *skb, const struct xt_action_param *par)
  13. __be32 prenat_ip, postnat_ip, prenat_ip_prev;
  14. const struct xt_DNETMAP_tginfo *tginfo = par->targinfo;
  15. const struct nf_nat_range *mr = &tginfo->prefix;
  16. +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 18, 0)
  17. + struct nf_nat_range2 newrange;
  18. +#else
  19. struct nf_nat_range newrange;
  20. +#endif
  21. struct dnetmap_entry *e;
  22. struct dnetmap_prefix *p;
  23. __s32 jttl;