[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Help regarding the socket tos
Hi...
I am facing an issue while setting the tos bit in socket structure in the kernel space. Intially we were using Linux 2.4 kernel and following code used to work.
void SetSockOpt( unsigned int sd )
{
struct socket *sock ;
int err = 0 ;
sock = sockfd_lookup(sd, &err);
sock->sk->protinfo.af_inet.tos = 0xaa ;
}
But when we migrated to 2.6 kernel the code stopped compiling and gives error no such field in the structure. Which is because the socket structure has been changed.
Has anyone come across with similar problem?
--
Regards,
Sandeep Malik