Re: IP_TOS setsockopt filters away MinCost

From: Fredrik Tolf
Date: Sun Mar 07 2004 - 08:18:17 EST


David S. Miller writes:
> On Sun, 7 Mar 2004 06:00:48 +0100
> Fredrik Tolf <fredrik@xxxxxxxxxxxxx> wrote:
>
> > This didn't make sense to me. Is there some reason behind this, and
> > would someone like to explain it to me in that case? I just spent an
> > hour trying to debug my program to find it why it didn't want to set
> > minimal cost, while the other three TOS options worked.
>
> Please read the diffserv RFCs for the current meanins of the TOS
> bits.

Well, I was thinking that it might be diffserv, but on the next line
in that code, it checks the TOS precedence value, so I thought it
can't be. Also, it only resets these bits for SOCK_STREAM sockets - it
doesn't touch SOCK_DGRAMs. Is diffserv still somehow the reason behind
it?

Fredrik Tolf

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/