netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* TCP minisock tcp_create_openreq_child() typo?
@ 2007-02-28 11:03 KOVACS Krisztian
  2007-02-28 12:10 ` Arnaldo Carvalho de Melo
  0 siblings, 1 reply; 3+ messages in thread
From: KOVACS Krisztian @ 2007-02-28 11:03 UTC (permalink / raw)
  To: netdev


  Hi,

  While reading TCP minisock code I've found this suspiciously looking
code fragment:

- 8< -
struct sock *tcp_create_openreq_child(struct sock *sk, struct request_sock *req, struct sk_buff *skb)
{
	struct sock *newsk = inet_csk_clone(sk, req, GFP_ATOMIC);

	if (newsk != NULL) {
		const struct inet_request_sock *ireq = inet_rsk(req);
		struct tcp_request_sock *treq = tcp_rsk(req);
		struct inet_connection_sock *newicsk = inet_csk(sk);
		struct tcp_sock *newtp;
- 8< -

  The above code initializes newicsk to inet_csk(sk), isn't that supposed
to be inet_csk(newsk)?  As far as I can tell this might leave
icsk_ack.last_seg_size zero even if we do have received data.

-- 
 Regards,
  Krisztian Kovacs

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-02-28 19:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-28 11:03 TCP minisock tcp_create_openreq_child() typo? KOVACS Krisztian
2007-02-28 12:10 ` Arnaldo Carvalho de Melo
2007-02-28 19:06   ` David Miller

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).