[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Reading TOS of incoming packets (round 2)



I am trying to read TOS of incoming packets on TCP socket. I know that it
has to be done in 3 steps:
1) setting IP_RECVTOS using setsockopt
2) using recvmsg to get an ancillary message
3) use cmsg macros to get the data (thanks to Nimrod)

I have troubles getting all 3 together - I set the option using
setsockopt, but each time I call recvmsg, there are no msgs waiting. any
ideas, examples etc are very appreciated. If you have any examples for
getting TOS/TTL/similar please send me some pointer.

Thanks in advance
Leonid Igolnik aka LiM


=================================================================
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