netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* tcp_sock variable initialization
@ 2009-09-18  8:50 Armin Abfalterer
  0 siblings, 0 replies; only message in thread
From: Armin Abfalterer @ 2009-09-18  8:50 UTC (permalink / raw)
  To: netdev

Hi!

I need a control variable (ecnn_flags) in tcp_sock that should be set
properly after the 3-way-handshake in tcp_create_openreq_child(). If I
set the variable in its value is always 0 afterwards.

struct sock *tcp_create_openreq_child( ... )
{
	struct sock *newsk = inet_csk_clone(sk, req, GFP_ATOMIC);

	if (newsk != NULL) {
		struct tcp_sock *newtp;

		newtp = tcp_sk(newsk);
		newtp->ecnn_flags |= TCP_ECN_NONCE_OK;
	}
}

When I read the variable for the next outgoing segment the values is not
set.

static int tcp_transmit_skb( ... )
{
	struct tcp_sock *tp;

	
	if (tp->ecnn_flags & TCP_ECN_NONCE_OK) {
		/*
		* never entered!!!!
		*/
	}
}

I'm quite sure that it has to do with the creation of the big socket
when the connection enters TCP_ESTABLISHED but searching for hours
didn't help to find the right place where my variable is re-initialized.

Any hint in the right direction would greatly appreciated!!! Thanks!

Armin


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-09-18  8:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-18  8:50 tcp_sock variable initialization Armin Abfalterer

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