001-fix-kernel-3.9.patch 613 B

12345678910111213141516
  1. --- a/kernel/net/netfilter/ipset/ip_set_core.c
  2. +++ b/kernel/net/netfilter/ipset/ip_set_core.c
  3. @@ -27,6 +27,13 @@
  4. #include <linux/netfilter/nfnetlink.h>
  5. #include <linux/netfilter/ipset/ip_set.h>
  6. +#ifndef IPSET_IN_KERNEL_TREE
  7. +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 9, 0)
  8. +#define nfnl_unlock() nfnl_unlock(NFNL_SUBSYS_IPSET)
  9. +#define nfnl_lock() nfnl_lock(NFNL_SUBSYS_IPSET)
  10. +#endif
  11. +#endif
  12. +
  13. static LIST_HEAD(ip_set_type_list); /* all registered set types */
  14. static DEFINE_MUTEX(ip_set_type_mutex); /* protects ip_set_type_list */
  15. static DEFINE_RWLOCK(ip_set_ref_lock); /* protects the set refs */