/* SPDX-License-Identifier: GPL-2.0 */ /* Copyright (C) B.A.T.M.A.N. contributors: * * Marek Lindner, Simon Wunderlich * * This file contains macros for maintaining compatibility with older versions * of the Linux kernel. */ #ifndef _NET_BATMAN_ADV_COMPAT_LINUX_IGMP_H_ #define _NET_BATMAN_ADV_COMPAT_LINUX_IGMP_H_ #include #include_next #if LINUX_VERSION_IS_LESS(5, 1, 0) static inline int batadv_ip_mc_check_igmp(struct sk_buff *skb) { return ip_mc_check_igmp(skb, NULL); } #define ip_mc_check_igmp(skb) \ batadv_ip_mc_check_igmp(skb) #endif /* LINUX_VERSION_IS_LESS(5, 1, 0) */ #endif /* _NET_BATMAN_ADV_COMPAT_LINUX_IGMP_H_ */