This is a discussion on Useless networking code ? within the Linux Networking forums, part of the Linux Forums category; Noone could answer that shit : If we have a look at (tcp.c) the functions tcp_recv_skb() and tcp_read_sock() (and even ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Noone could answer that shit :
If we have a look at (tcp.c) the functions tcp_recv_skb() and tcp_read_sock() (and even tcp_recvmsg()): there is a Syn check : extract from the tcp_recv_skb() : offset = seq - TCP_SKB_CB(skb)->seq; if (skb->h.th->syn) offset--; seq contains copied_seq, which refers to the last passed sequence number. But if we have not receive data (the case if we receive a SYN), the check seems useless... I don't think i'll get a reply here, but maybe ... |