Hi, I am trying to set IP TOS byte when sending packet in sendmsg() in a TCP socket opened with 3XNET ( -lxnet) library.
I was able set the TOS byte using setsockopt(s, IPPROTO_IP, IP_TOS, &tos, sizeof(tos)). But this meant all the packets bear the same TOS byte. I tried setting values in the msghdr.msg_control, it did not let me do it. I do not want to use the raw socket; I want to stay with TCP socket. What would be the mechanism for setting TOS bits on a per packet basis on a socket? Also I need to find out how to receive the TOS bits along with the packet data received in a recvmsg(). I appreciate any suggestions. Vikram Shenoy Sonus Networks This message posted from opensolaris.org _______________________________________________ networking-discuss mailing list [email protected]
