Russell Shulman
|
Re: DSCP support for IPv4?
|
Russell Shulman
06/10/2008 1:19 PM
post8918
|
Re: DSCP support for IPv4?
One more question... Do you know when DSCP support is planned to be added? Thanks.
|
|
|
Sean Boudreau(deleted)
|
Re: DSCP support for IPv4?
|
Sean Boudreau(deleted)
06/10/2008 5:06 PM
post8941
|
Re: DSCP support for IPv4?
On Tue, Jun 10, 2008 at 01:10:55PM -0400, Russell Shulman wrote:
> I have a project where I need to set the DS field in packets being sent. I may be able to get away with setting it to
a static non-zero value in all emanating packets. Could you please point me to where in the source code the TOS octet is
currently set to zero? I realize that this would only be a temporary solution until full DSCP support is available.
> Thanks.
For SOCK_STREAM, SOCK_DGRAM you can change the TOS
with the IP_TOS socket option. See the docs for
getsockopt(), setsockopt(). For raw ip you can set
the IP_HDRINCL socket option. See the ping utility
for an example.
-seanb
|
|
|