revert "TEE: do not use TOS for routing"

Revert commit f77a8e2eda.

Patrick McHardy suggests in
http://marc.info/?l=netfilter-devel&m=123564267330117&w=2 that
routing should handle the clone more like its original.
This commit is contained in:
Jan Engelhardt
2009-03-05 02:03:06 +01:00
parent 08e6f23655
commit 621cef39f5
2 changed files with 3 additions and 0 deletions

View File

@@ -3,6 +3,7 @@
- ipset: fix for compilation with 2.6.29-rt
- rename xt_portscan to xt_lscan ("low-level scan") because
"portscan" as a wor caused confusion
- revert "TEE: do not use TOS for routing"
Xtables-addons 1.10 (February 18 2009)

View File

@@ -51,12 +51,14 @@ static const union nf_inet_addr tee_zero_address;
static bool
tee_tg_route4(struct sk_buff *skb, const struct xt_tee_tginfo *info)
{
const struct iphdr *iph = ip_hdr(skb);
int err;
struct rtable *rt;
struct flowi fl;
memset(&fl, 0, sizeof(fl));
fl.nl_u.ip4_u.daddr = info->gw.ip;
fl.nl_u.ip4_u.tos = RT_TOS(iph->tos);
fl.nl_u.ip4_u.scope = RT_SCOPE_UNIVERSE;
/* Trying to route the packet using the standard routing table. */