Re: TOS value restrictions in iptables and 'ip rule'

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

 




Mark Frazer wrote:

> I'd like to be able to select a routing table based on any possible TOS
> setting.  The system I'm building is to be able to route an arbitrary
> TOS setting as we're looking at the IPv4 TOS byte as a diffserv DSCP.
> What is the reasoning behind restricting the valid TOS matches to 0x00,
> 0x02, 0x04, 0x08 and 0x10?

Probably because they are the known/well-defined values....

> I'm a bit new to wandering through the kernel, but I think the
> functions I'm having grief with are the checkentry function in
> net/ipv4/netfilter/ipt_TOS.c for iptables.  I'd expect to find a similar
> test for the net/netlink or net/core/rtnetlink.c but I cannot, although
> I assume the ip command is trying to use the routing netlink to set
> its routes.

I'd try hacking ipt_TOS.c first and if you compiled it as a module,
you can quickly test different ipt_TOS modules without having to reboot.

You should also give the netfilter mailing list a try as well:

    netfilter@lists.samba.org


Regards,
Edwin

--
Edwin Chiu             | Principal Consultant  | tel: (416)260-9625 x247
Edwin.Chiu@e-wares.com | E-wares Inc.          | http://www.e-wares.com


-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org


[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