Networking Forums

Networking Forums > Computer Networking > Linux Networking > Is count of un acknowldged bytes maitained anywhere in kernel data structures for TCP socket ?

Reply
Thread Tools Display Modes

Is count of un acknowldged bytes maitained anywhere in kernel data structures for TCP socket ?

 
 
Rohit
Guest
Posts: n/a

 
      05-14-2007, 12:23 PM
Hi all
What i am trying to do is : get data that is lying in the TCP
send buffer.
I need the count first and then the actual data. I dont know if this
count is already calculatated and stored somewhere ?? For data i
*think* , i need to traverse the sk_write_queue list for all the
sk_buff structs and pick up if there is any data in it . Currently my
code traveses this list twice . Once for count and once for data. want
to optimize that.

Thanks,
Rohit

 
Reply With Quote
 
 
 
Reply

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get data in kernel SEND buffer for a TCP socket from a netfilter based kernel module Rohit Linux Networking 0 05-10-2007 11:27 AM
How to read all data from kernel buffer for a socket fd (which uses TCP ) will_u_tellmemore Linux Networking 0 12-21-2006 01:23 PM
Raw socket captures only first 96 bytes of packet satishamara@yahoo.com Linux Networking 1 08-09-2005 01:55 PM
Raw socket captures only first 96 bytes of packet satishamara@yahoo.com Linux Networking 0 08-08-2005 06:32 PM
[HELP] data corruption: swap of bytes distant from 12 bytes Francois Grieu Windows Networking 0 11-17-2003 07:57 AM



1 2 3 4 5 6 7 8 9 10 11