Bluehost.com Web Hosting $6.95

Useless networking code ?

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


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-23-2003
anth0
 
Posts: n/a
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 ...
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 10:08 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0