mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-20 19:44:56 +02:00
Revert "xt_TEE: cosmetic replace a version check"
This reverts commit ab13e58f96
.
Whoops. There is no mark at all before 2.6.19.
This commit is contained in:
@@ -232,9 +232,10 @@ tee_tg_route6(struct sk_buff *skb, const struct xt_tee_tginfo *info)
|
|||||||
|
|
||||||
memset(&fl, 0, sizeof(fl));
|
memset(&fl, 0, sizeof(fl));
|
||||||
fl.iif = skb_ifindex(skb);
|
fl.iif = skb_ifindex(skb);
|
||||||
|
/* No mark in flowi before 2.6.19 */
|
||||||
#if LINUX_VERSION_CODE == KERNEL_VERSION(2, 6, 19)
|
#if LINUX_VERSION_CODE == KERNEL_VERSION(2, 6, 19)
|
||||||
fl.nl_u.ip6_u.fwmark = skb_nfmark(skb);
|
fl.nl_u.ip6_u.fwmark = skb_nfmark(skb);
|
||||||
#else
|
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 20)
|
||||||
fl.mark = skb_nfmark(skb);
|
fl.mark = skb_nfmark(skb);
|
||||||
#endif
|
#endif
|
||||||
fl.nl_u.ip6_u.daddr = info->gw.in6;
|
fl.nl_u.ip6_u.daddr = info->gw.in6;
|
||||||
|
Reference in New Issue
Block a user