From mboxrd@z Thu Jan 1 00:00:00 1970 From: daniel.baluta@gmail.com (Daniel Baluta) Date: Fri, 14 Jan 2011 16:49:13 +0200 Subject: Casting sock to inet_timewait_sock In-Reply-To: References: Message-ID: To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org 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