lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <45CC9C78.5050501@isotton.com>
Date:	Fri, 09 Feb 2007 17:08:24 +0100
From:	Aaron Isotton <aaron@...tton.com>
To:	linux-kernel@...r.kernel.org
Subject: Getting tcp_sock in tcp_parse_options

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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ