build: adjust for changed signature of ip_route_me_harder

(Cf. commit 46d6c5ae953cc0be38efd0e469284df7c4328cf8 in Linux.)
This commit is contained in:
Jan Engelhardt
2020-11-19 12:28:55 +01:00
parent d3f7dc1f55
commit 0ab3247900
4 changed files with 10 additions and 7 deletions

View File

@@ -41,6 +41,12 @@
((const unsigned char *)&addr)[3]
# define NIPQUAD_FMT "%hhu.%hhu.%hhu.%hhu"
#endif
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 10, 0) || \
LINUX_VERSION_CODE >= KERNEL_VERSION(5, 9, 9) && LINUX_VERSION_CODE < KERNEL_VERSION(5, 10, 0)
#else
# define ip_route_me_harder(xnet, xsk, xskb, xaddrtype) ip_route_me_harder((xnet), (xskb), (xaddrtype))
# define ip6_route_me_harder(xnet, xsk, xskb) ip_route_me_harder((xnet), (xskb))
#endif
static inline struct net *par_net(const struct xt_action_param *par)
{