netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* tcp_recv_skb, tcp_read_sock and tcp_recvmsg useless check ?
@ 2003-10-23 11:02 an7
  0 siblings, 0 replies; only message in thread
From: an7 @ 2003-10-23 11:02 UTC (permalink / raw)
  To: netdev

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] only message in thread

only message in thread, other threads:[~2003-10-23 11:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-23 11:02 tcp_recv_skb, tcp_read_sock and tcp_recvmsg useless check ? an7

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