All of lore.kernel.org
 help / color / mirror / Atom feed
* Useless networking code in 2.4.x ?
@ 2003-10-23  8:58 an7
  2003-10-23 10:31 ` David S. Miller
  0 siblings, 1 reply; 2+ messages in thread
From: an7 @ 2003-10-23  8:58 UTC (permalink / raw)
  To: linux-kernel


Hi,

If we have a look at tcp_recv_skb, and
tcp_read_sock(),

we notice that there is a SYN check, and if the flag
is on, we do offset-- (sequence number not
corresponding to real data byte). 

This Syn check is useless, as the function cannot be
called at the beginning of a connection (since we have
not copied_seq filled with the last sequence number of
the last packet passed to the upper layer)

What do you think of that ?


___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

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

* Re: Useless networking code in 2.4.x ?
  2003-10-23  8:58 Useless networking code in 2.4.x ? an7
@ 2003-10-23 10:31 ` David S. Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2003-10-23 10:31 UTC (permalink / raw)
  To: an7; +Cc: linux-kernel, netdev

On Thu, 23 Oct 2003 10:58:01 +0200 (CEST)
an7 <an3h0ny@yahoo.fr> wrote:

> If we have a look at tcp_recv_skb, and
> tcp_read_sock(),
>
> we notice that there is a SYN check, and if the flag
> is on, we do offset-- (sequence number not
> corresponding to real data byte). 
>
> This Syn check is useless, as the function cannot be
> called at the beginning of a connection (since we have
> not copied_seq filled with the last sequence number of
> the last packet passed to the upper layer)
> 
> What do you think of that ?

Please next time, take this kind of question to netdev@oss.sgi.com
where the networking developers are, most of them are not subscribed
to linux-kernel.

As to your question, if we ever support accepting data in the
initial final SYN-ACK packet, this code would be needed, so it's
better to keep this code around.


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

end of thread, other threads:[~2003-10-23 10:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-23  8:58 Useless networking code in 2.4.x ? an7
2003-10-23 10:31 ` David S. 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.