From: Aaron Isotton <aaron@isotton.com>
To: linux-kernel@vger.kernel.org
Subject: Getting tcp_sock in tcp_parse_options
Date: Fri, 09 Feb 2007 17:08:24 +0100 [thread overview]
Message-ID: <45CC9C78.5050501@isotton.com> (raw)
Hello
I am porting a kernel patch and module from 2.4 to 2.6. Part of the
patch implements a new TCP options, so it extends tcp_parse_options.
Since the patch has to maintain a state it adds some new fields to
struct tcp_sock which should then be updated from tcp_parse_options.
I had to notice that using tcp_sk(skb) inside tcp_parse_options always
(or at least in all cases I tested) returns NULL. So, how do I get the
tcp_sock structure associated with the connection in tcp_parse_options?
As a side note: is there any documentation about the Linux TCP/IP stack
(except what's in Documentation/ and the comments)?
Thank you very much,
Aaron
reply other threads:[~2007-02-09 16:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=45CC9C78.5050501@isotton.com \
--to=aaron@isotton.com \
--cc=linux-kernel@vger.kernel.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