I wrote:
It is not currently implemented, but definitely a good idea.
After re-thinking this I guess you need a more generic interface to setup TOS, including higher bits needed for DSCP. The good news is that it is already implemented in a more generic way:
For local/accepted socket: socket = l:IP_TOS=<value> For remote/connected socket: socket = r:IP_TOS=<value>
This page may be useful to compute the <value> above: http://bogpeople.com/networking/dscp.shtml
Mike