mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-08 13:44:56 +02:00
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:
@@ -3,6 +3,7 @@
|
|||||||
- ipset: fix for compilation with 2.6.29-rt
|
- ipset: fix for compilation with 2.6.29-rt
|
||||||
- rename xt_portscan to xt_lscan ("low-level scan") because
|
- rename xt_portscan to xt_lscan ("low-level scan") because
|
||||||
"portscan" as a wor caused confusion
|
"portscan" as a wor caused confusion
|
||||||
|
- revert "TEE: do not use TOS for routing"
|
||||||
|
|
||||||
|
|
||||||
Xtables-addons 1.10 (February 18 2009)
|
Xtables-addons 1.10 (February 18 2009)
|
||||||
|
@@ -51,12 +51,14 @@ static const union nf_inet_addr tee_zero_address;
|
|||||||
static bool
|
static bool
|
||||||
tee_tg_route4(struct sk_buff *skb, const struct xt_tee_tginfo *info)
|
tee_tg_route4(struct sk_buff *skb, const struct xt_tee_tginfo *info)
|
||||||
{
|
{
|
||||||
|
const struct iphdr *iph = ip_hdr(skb);
|
||||||
int err;
|
int err;
|
||||||
struct rtable *rt;
|
struct rtable *rt;
|
||||||
struct flowi fl;
|
struct flowi fl;
|
||||||
|
|
||||||
memset(&fl, 0, sizeof(fl));
|
memset(&fl, 0, sizeof(fl));
|
||||||
fl.nl_u.ip4_u.daddr = info->gw.ip;
|
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;
|
fl.nl_u.ip4_u.scope = RT_SCOPE_UNIVERSE;
|
||||||
|
|
||||||
/* Trying to route the packet using the standard routing table. */
|
/* Trying to route the packet using the standard routing table. */
|
||||||
|
Reference in New Issue
Block a user