[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: OT: reading TOS of incoming tcp packets
On Sat, 15 Jan 2000, Leonid Igolnik - LiM wrote:
> I am looking for working piece of code for reading TOS field of incoming
> packets. Any pointers appreciated.
if you're talking about some code that receives an IP packet (not a
sniffer...) and wants to know the TOS field value, at least on current
linux systems, you may use the 'IP_RECVTOS' socket option (man 4 ip,
search for this string).
in general: socket options are your friends. use them ;) (not sure about
their portability between OSes, though...)
guy
"For world domination - press 1,
or dial 0, and please hold, for the creator." -- nob o. dy
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il