LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-22-2011, 06:03 AM   #1
TheSummiteer
LQ Newbie
 
Registered: Jun 2011
Posts: 1

Rep: Reputation: Disabled
Question DSCP reset to 0 after socket configuration


Hi,

I'm trying to set the DSCP in the IPv4 header for outgoing UDP packets using C++ on Debian. I do the socket configuration with setsockopt and check it afterwards by reading the value back with getsockopt:

Code:
getsockopt(clientsocket, IPPROTO_IP, IP_TOS, &tos, sizeof(tos))
...
getsockopt(clientsocket, IPPROTO_IP, IP_TOS, &check_tos, &check_tos_len)
Afterwards, I'm sending a packet using sendto(). Nevertheless, if I check the outgoing UDP packet using wireshark it seems that the DSCP value is 0x00 (default).

What am I doing wrong? Is the DSCP reset by the operating system be default?

many thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to reset th iscsi configuration? Cisco López Linux - General 0 07-31-2008 05:55 AM
fatal: Read from socket failed: Connection reset by peer prakash.akumalla Linux - Newbie 0 07-18-2008 04:42 AM
ERROR reading from socket: Connection reset by peer sweetytweety Linux - Newbie 3 05-16-2008 05:21 AM
SSH fatal: Read from socket failed: Connection reset by peer humbletech99 Linux - Networking 3 01-03-2007 06:41 PM
Reset fluxbox configuration aje Linux - Software 1 10-31-2004 01:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration