Message ID | 20190404073141.27080-1-zajec5@gmail.com |
---|---|
State | Accepted |
Headers | show |
Series | [OpenWrt-Devel] kernel: fix rtcache compilation with 4.19 and NF_CONNTRACK_IPV6 | expand |
diff --git a/target/linux/generic/backport-4.19/020-backport_netfilter_rtcache.patch b/target/linux/generic/backport-4.19/020-backport_netfilter_rtcache.patch index 32b43082be..3a35381ce3 100644 --- a/target/linux/generic/backport-4.19/020-backport_netfilter_rtcache.patch +++ b/target/linux/generic/backport-4.19/020-backport_netfilter_rtcache.patch @@ -209,8 +209,8 @@ Signed-off-by: Florian Westphal <fw@strlen.de> + if (pf == NFPROTO_IPV6) { + const struct rt6_info *rt = (const struct rt6_info *)dst; + -+ if (rt->rt6i_node) -+ return (u32)rt->rt6i_node->fn_sernum; ++ if (rt->from && rt->from->fib6_node) ++ return (u32)rt->from->fib6_node->fn_sernum; + } +#endif + return 0;