Casting sock to inet_timewait_sock

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

 



Hello,

When casting sock to inet_timewait_sock ([1]) it is assumed
that sock points to a structure of type inet_timewait_sock.

Is there a way to check if a sock struct wraps around
a inet_timewait_sock struct?

thanks,
Daniel.

[1] http://lxr.linux.no/linux+v2.6.37/include/net/inet_timewait_sock.h#L189

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[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