In message <[EMAIL PROTECTED]> you
 write:
> > ipchains -A input -p tcp -d 0.0.0.0/0 80 -t 0x01 0x80
> > ip ru from 192.168.0.14 tos 0x08 table 4
> 
> (I'm assuming you meant 0x01 0x08 since your ip route looks fine)
> 
> > But this doesn't work. (ip ro table 4 is working well. I've a similar
> > rule checking only for some other ip and it works.)
> 
> >From my understanding (I too have multiple routes, one for high throughput
> and another for everything else) but I have found that you cannot route by
> ToS any packets *originating* from the box you're routing via ToS with.

That's true, and for the reasons you gave. 8-(.

> To anyone following this thread...  is it possible to create a program
> which could attach itself to the tail end of a given program and force a
> specific ToS setting?   i.e. I theoretically should be able to change the
> qmail packet program to automatically set ToS 0x08 and then it should
> route fine, but I am unsure of this.  :-)

>From an strace of telnet:
     setsockopt(3, SOL_IP, IP_TOS, [16], 4)  = 0

This is what telnet does.  Create a shared library, containing a new
socket() call to do a similar setsockopt if the __socket() call
succeeds and is an IP socket...  Just rip the code floating around to
fix rvplayer using a similar .so solution.

A TOSsing proxy is also a possible solution, but I prefer the above.

Rusty.
--
 .sig lost in the mail.

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to