From: daniel.baluta@gmail.com (Daniel Baluta)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Casting sock to inet_timewait_sock
Date: Fri, 14 Jan 2011 16:49:13 +0200 [thread overview]
Message-ID: <AANLkTimEeenpk90SW=tw6Ye333wiJVDSGVdi6i2ZVLo+@mail.gmail.com> (raw)
In-Reply-To: <AANLkTim=EaxO1WL1pqfse9xqY3vduAfqbcBh0o9iEJv_@mail.gmail.com>
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
next prev parent reply other threads:[~2011-01-14 14:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-14 14:47 Casting sock to inet_timewait_sock Daniel Baluta
2011-01-14 14:49 ` Daniel Baluta [this message]
2011-01-14 21:23 ` Michael Blizek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='AANLkTimEeenpk90SW=tw6Ye333wiJVDSGVdi6i2ZVLo+@mail.gmail.com' \
--to=daniel.baluta@gmail.com \
--cc=kernelnewbies@lists.kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).