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.

46 lines
3.1 KiB

  1. From b89f391203c4420eb454cb321e799a64de809f52 Mon Sep 17 00:00:00 2001
  2. From: Yousong Zhou <zhouyousong@yunionyun.com>
  3. Date: Fri, 3 May 2019 15:03:24 +0000
  4. Subject: [PATCH 5/5] datapath: conntrack: fix include for
  5. IP6_DEFRAG_CONNTRACK_IN
  6. The enum definition is now inside include/net/ipv6_frag.h since upstream commit
  7. 70b095c ("ipv6: remove dependency of nf_defrag_ipv6 on ipv6 module") which was
  8. backported to stable trees (4.9, 4.14, 4.19) only these days.
  9. The error message
  10. CC [M] /opt/buildbot/slaves/lede-slave-tah/mipsel_24kc/build/sdk/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/openvswitch-2.11.0/datapath/linux/conntrack.o
  11. /opt/buildbot/slaves/lede-slave-tah/mipsel_24kc/build/sdk/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/openvswitch-2.11.0/datapath/linux/conntrack.c: In function 'handle_fragments':
  12. /opt/buildbot/slaves/lede-slave-tah/mipsel_24kc/build/sdk/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/openvswitch-2.11.0/datapath/linux/conntrack.c:554:8: error: variable 'user' has initializer but incomplete type
  13. enum ip6_defrag_users user = IP6_DEFRAG_CONNTRACK_IN + zone;
  14. ^~~~~~~~~~~~~~~~
  15. /opt/buildbot/slaves/lede-slave-tah/mipsel_24kc/build/sdk/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/openvswitch-2.11.0/datapath/linux/conntrack.c:554:32: error: 'IP6_DEFRAG_CONNTRACK_IN' undeclared (first use in this function); did you mean 'IP_DEFRAG_CONNTRACK_IN'?
  16. enum ip6_defrag_users user = IP6_DEFRAG_CONNTRACK_IN + zone;
  17. ^~~~~~~~~~~~~~~~~~~~~~~
  18. IP_DEFRAG_CONNTRACK_IN
  19. /opt/buildbot/slaves/lede-slave-tah/mipsel_24kc/build/sdk/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/openvswitch-2.11.0/datapath/linux/conntrack.c:554:32: note: each undeclared identifier is reported only once for each function it appears in
  20. /opt/buildbot/slaves/lede-slave-tah/mipsel_24kc/build/sdk/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/openvswitch-2.11.0/datapath/linux/conntrack.c:554:25: error: storage size of 'user' isn't known
  21. enum ip6_defrag_users user = IP6_DEFRAG_CONNTRACK_IN + zone;
  22. ^~~~
  23. /opt/buildbot/slaves/lede-slave-tah/mipsel_24kc/build/sdk/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/openvswitch-2.11.0/datapath/linux/conntrack.c:554:25: warning: unused variable 'user' [-Wunused-variable]
  24. scripts/Makefile.build:326: recipe for target '/opt/buildbot/slaves/lede-slave-tah/mipsel_24kc/build/sdk/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/openvswitch-2.11.0/datapath/linux/conntrack.o' failed
  25. Reference: https://github.com/openwrt/packages/issues/8548#issuecomment-488871090
  26. Signed-off-by: Yousong Zhou <zhouyousong@yunionyun.com>
  27. ---
  28. datapath/conntrack.c | 1 +
  29. 1 file changed, 1 insertion(+)
  30. diff --git a/datapath/conntrack.c b/datapath/conntrack.c
  31. index a7dc9e0c3..69bda5a9c 100644
  32. --- a/datapath/conntrack.c
  33. +++ b/datapath/conntrack.c
  34. @@ -31,6 +31,7 @@
  35. #include <net/netfilter/nf_conntrack_seqadj.h>
  36. #include <net/netfilter/nf_conntrack_zones.h>
  37. #include <net/netfilter/ipv6/nf_defrag_ipv6.h>
  38. +#include <net/ipv6_frag.h>
  39. #ifdef CONFIG_NF_NAT_NEEDED
  40. #include <linux/netfilter/nf_nat.h>