| To: | netdev@xxxxxxxxxxx |
|---|---|
| Subject: | tcp_recv_skb, tcp_read_sock and tcp_recvmsg useless check ? |
| From: | an7 <an3h0ny@xxxxxxxx> |
| Date: | Thu, 23 Oct 2003 13:02:47 +0200 (CEST) |
| Sender: | netdev-bounce@xxxxxxxxxxx |
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 |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Useless networking code in 2.4.x ?, David S. Miller |
|---|---|
| Next by Date: | Disabling IPv6 accept_ra on just some interface, Pekka Savola |
| Previous by Thread: | Re: Useless networking code in 2.4.x ?, David S. Miller |
| Next by Thread: | Disabling IPv6 accept_ra on just some interface, Pekka Savola |
| Indexes: | [Date] [Thread] [Top] [All Lists] |