All of lore.kernel.org
 help / color / mirror / Atom feed
* inet_diag_dump_icsk() change seems bogus...
@ 2014-02-02  8:45 David Miller
  2014-02-02 15:43 ` Neal Cardwell
  0 siblings, 1 reply; 7+ messages in thread
From: David Miller @ 2014-02-02  8:45 UTC (permalink / raw)
  To: netdev; +Cc: ncardwell


Upon further review, commit 70315d22d3c7383f9a508d0aab21e2eb35b2303a
("inet_diag: fix inet_diag_dump_icsk() to use correct state for
timewait sockets") doesn't seem valid to me.

Take a close look at get_tcp4_sock() and get_timewait4_sock() which
you reference in your commit message.

The former always gets it's socket from head->chain and the latter
always gets it's socket from head->twchain.

Yet in this inet_diag_dump_icsk() change, you're changing the
head->chain iterator to check for timewait sockets.  That doesn't
seem possible.

Only head->twchain holds timewait sockets, and this code was handling
it correctly already.

What gives?

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

end of thread, other threads:[~2014-02-03  1:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-02  8:45 inet_diag_dump_icsk() change seems bogus David Miller
2014-02-02 15:43 ` Neal Cardwell
2014-02-02 18:52   ` Eric Dumazet
2014-02-02 18:59     ` Neal Cardwell
2014-02-02 21:03       ` David Miller
2014-02-03  1:41         ` Neal Cardwell
2014-02-02 21:00   ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.