Re: Policy routing work in 2.2 but not in 2.4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




	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>

-
: 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


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux