Re: Policy routing work in 2.2 but not in 2.4

From: Julian Anastasov (ja@ssi.bg)
Date: Sun Jan 20 2002 - 13:16:37 EST


        Hello,

On Sun, 20 Jan 2002, Theodor Milkov wrote:

> Julian Anastasov wrote:
>
> >>32765: from all to 1.1.1.1 tos 0x02 lookup 199
> >>
> >
> > Probably missing CONFIG_IP_ROUTE_TOS config option
>
> $ grep CONFIG_IP_ROUTE_TOS /usr/src/linux/.config
> CONFIG_IP_ROUTE_TOS=y
>
> It is compiled in ;-( Any other ideas, tests or something?

        He-he, it seems you can't use the lower 2 bits:

linux/include/net/route.h:#define IPTOS_RT_MASK (IPTOS_TOS_MASK & ~3)

        From routes.c:ip_route_input():

tos &= IPTOS_RT_MASK;

> The configuration I am referring to used to work absolutely perfect with
> kernel versions between 2.2.5 and 2.2.20 for more than an year.

        In 2.2 it is:

tos &= IPTOS_TOS_MASK;

        What to say, the standards change. But I'm not sure, ask
the maintainers. What I see is that 2.4 ignores the lower 2 bits
from the user defined tos. Check the ECN support.

Regards

--
Julian Anastasov <ja@ssi.bg>

- To unsubscribe from this list: send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html



This archive was generated by hypermail 2b29 : Wed Jan 23 2002 - 21:01:13 EST