Help regarding the socket tos

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

 



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
 

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux