Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Linux Networking

Useless networking code ?

Reply
 
Thread Tools Display Modes
  #1  
Old 10-23-2003, 11:24 AM
Default Useless networking code ?



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


anth0
Reply With Quote
Reply

Tags
code, networking, useless

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 09:14 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.