netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* TCP_SKB_CB(skb)->flags = iph->tos ?
@ 2008-05-30 20:53 Octavian Purdila
  2008-06-04 22:26 ` David Miller
  0 siblings, 1 reply; 3+ messages in thread
From: Octavian Purdila @ 2008-05-30 20:53 UTC (permalink / raw)
  To: netdev


tcp_v4_rcv says: TCP_SKB_CB(skb)->flags = iph->tos;

I am probably missing something obvious, but shouldn't flags be initialized 
with the TCP headers instead of the IP TOS value?

Thanks,
tavi

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

* Re: TCP_SKB_CB(skb)->flags = iph->tos ?
  2008-05-30 20:53 TCP_SKB_CB(skb)->flags = iph->tos ? Octavian Purdila
@ 2008-06-04 22:26 ` David Miller
  2008-06-05 11:55   ` Octavian Purdila
  0 siblings, 1 reply; 3+ messages in thread
From: David Miller @ 2008-06-04 22:26 UTC (permalink / raw)
  To: opurdila; +Cc: netdev

From: Octavian Purdila <opurdila@ixiacom.com>
Date: Fri, 30 May 2008 23:53:56 +0300

> 
> tcp_v4_rcv says: TCP_SKB_CB(skb)->flags = iph->tos;
> 
> I am probably missing something obvious, but shouldn't flags be initialized 
> with the TCP headers instead of the IP TOS value?

On packet output ->flags holds the TCP header flags, on packet input
it holds the TOS field for testing ECN flags.

You could have had a look at how the ->flags field is used on TCP
output vs. TCP input processing to get a better idea of what might be
going on here.

That's exactly how I figured it out, I didn't know the answer either,
but constantly I'm doing simple searches for people and learning the
code for other people it seems even when I really don't even have
the time to do so :-/

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

* Re: TCP_SKB_CB(skb)->flags = iph->tos ?
  2008-06-04 22:26 ` David Miller
@ 2008-06-05 11:55   ` Octavian Purdila
  0 siblings, 0 replies; 3+ messages in thread
From: Octavian Purdila @ 2008-06-05 11:55 UTC (permalink / raw)
  To: David Miller; +Cc: netdev


>
> That's exactly how I figured it out, I didn't know the answer either,
> but constantly I'm doing simple searches for people and learning the
> code for other people it seems even when I really don't even have
> the time to do so :-/


Apologies, I did not pay attention to my grep output and was under the 
impression that ->flags is only used together with the TCP headers and that 
the ip->tos assignment was never used.

Thanks,
tavi

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

end of thread, other threads:[~2008-06-05 13:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-30 20:53 TCP_SKB_CB(skb)->flags = iph->tos ? Octavian Purdila
2008-06-04 22:26 ` David Miller
2008-06-05 11:55   ` Octavian Purdila

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