netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Question about tcp reopen in tcp_in_window
@ 2011-11-17  6:52 Gao feng
  2011-11-17  8:07 ` Jozsef Kadlecsik
  0 siblings, 1 reply; 5+ messages in thread
From: Gao feng @ 2011-11-17  6:52 UTC (permalink / raw)
  To: netfilter-devel, xiaosuo

Hi

I has a question about the tcp reopen request in func tcp_in_window.
The code is below,what confuse me is that the var end is never after sender->td_end.

static int tcp_in_window(struct ip_ct_tcp *state,
		...
	if (sender->td_end == 0) {
		...
	} else if (((state->state == TCP_CONNTRACK_SYN_SENT
                     && dir == IP_CT_DIR_ORIGINAL)
                   || (state->state == TCP_CONNTRACK_SYN_RECV
                     && dir == IP_CT_DIR_REPLY))
                   && after(end, sender->td_end)) {

		...
	}
		...
}


When nf_conn rcv a syn request in TIME_WAIT state,the new_state is SYN_SNET.
in func tcp_packet, this nf_conn will be kill by nf_ct_kill and the syn packet will repeat.
So we will have a new nf_conn,whose sender->td_end is reset in func tcp_new.

finally,when this syn packet arrive tcp_in_window,the var end is equal to sender->td_end.

Maybe there is the other situation Or what I understand is totally wrong?

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

end of thread, other threads:[~2011-11-17 12:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-17  6:52 Question about tcp reopen in tcp_in_window Gao feng
2011-11-17  8:07 ` Jozsef Kadlecsik
2011-11-17  9:05   ` Gao feng
2011-11-17  9:41     ` Jozsef Kadlecsik
2011-11-17 12:12       ` Gao feng

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