- compat_xtables: return bool for match_check and target_check in 2.6.23..34
- ipset: enable building of ip_set_ipport{ip,net}hash.ko
- SYSRQ: resolve compile error with Linux 2.6.36
+- TEE: resolve compile error with Linux 2.6.36
Xtables-addons 1.28 (July 24 2010)
# define ip6t_unregister_table(tbl) ip6t_unregister_table(tbl)
#endif
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 36)
+# define rt_dst(rt) (&(rt)->dst)
+#else
+# define rt_dst(rt) (&(rt)->u.dst)
+#endif
#if !defined(NIP6) && !defined(NIP6_FMT)
# define NIP6(addr) \
/* Rate-limit replies to !SYN,ACKs */
#if 0
if (!oth->syn && oth->ack)
- if (!xrlim_allow(&ort->u.dst, HZ))
+ if (!xrlim_allow(rt_dst(ort), HZ))
return;
#endif
return false;
dst_release(skb_dst(skb));
- skb_dst_set(skb, &rt->u.dst);
- skb->dev = rt->u.dst.dev;
+ skb_dst_set(skb, rt_dst(rt));
+ skb->dev = rt_dst(rt)->dev;
skb->protocol = htons(ETH_P_IP);
return true;
}