LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* Getting tcp_sock in tcp_parse_options
@ 2007-02-09 16:08 Aaron Isotton
0 siblings, 0 replies; only message in thread
From: Aaron Isotton @ 2007-02-09 16:08 UTC (permalink / raw)
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,
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-02-09 16:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-09 16:08 Getting tcp_sock in tcp_parse_options Aaron Isotton
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).