From: Eric Dumazet <eric.dumazet@gmail.com>
To: "Naveen B N (nbn)" <nbn@cisco.com>
Cc: netdev@vger.kernel.org
Subject: Re: Get TOS from IP header
Date: Tue, 22 Nov 2011 06:31:00 +0100 [thread overview]
Message-ID: <1321939860.27077.10.camel@edumazet-laptop> (raw)
In-Reply-To: <A2354B6A9F807641B21EEABD666ECEEA01F7DDEC@XMB-BGL-416.cisco.com>
Le mardi 22 novembre 2011 à 07:06 +0530, Naveen B N (nbn) a écrit :
> Hi All,
>
> I want to get the TOS field content from IP header at
> my application which is using SCTP protocol.
> I know that it can be done by Using RAW socket but
> There is a over head of implementing the sctp at the
> Application layer .
> Is there a better way of getting a TOS field filled
> Which we received from IP header.
>
> I taught of adding code in kernel to recognize a socket option at the kernel,
> If this option is set just and get TOS contents in receive .
>
> Please let me know if this is the way to go about it or is there
> A better way to achieve the same .
>
I believe SCTP is not yet described in "man 7 ip", but since its
obviously an IP protocol, all things described in this man page should
work.
IP_RECVTOS (since Linux 2.2)
If enabled the IP_TOS ancillary message is passed with incoming packets.
It contains a byte which specifies the Type of Service/Precedence field of
the packet header. Expects a boolean integer flag.
prev parent reply other threads:[~2011-11-22 5:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-22 1:36 Get TOS from IP header Naveen B N (nbn)
2011-11-22 5:31 ` Eric Dumazet [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1321939860.27077.10.camel@edumazet-laptop \
--to=eric.dumazet@gmail.com \
--cc=nbn@cisco.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox