LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 10-16-2012, 06:02 AM   #1
alex273
LQ Newbie
 
Registered: Oct 2012
Posts: 1

Rep: Reputation: Disabled
problems on undestanding tcp/ip mechanism on linux2.6.30


Hi, i'm a student of computer science and i'm developing a project on a kernel 2.6.30.

I already have a mechanism that give me a feedback when a tcp packet don't reach the router on wireless connection. Now i will be able to resend lost packets(that are lost during the route node-router) before the tcp timeout. When my hardware give me this information i put the lost packet into a list(with information about ip and tcp headers).

Here i have my problem. When i put package on my list i think i have to send an event that tcp_write_timer() can handle for resending. Now i alredy modified tcp_write_timer() to handle another event but i don't understand how this function receive it. I think i need to set the parameter icsk_pending with the number of the event and put the package into the sk list of the socket. Can anyone explain me how this resending event work ?

Thanks a lot.
 
Old 10-16-2012, 08:10 AM   #2
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by alex273 View Post
Here i have my problem. When i put package on my list i think i have to send an event that tcp_write_timer() can handle for resending. Now i alredy modified tcp_write_timer() to handle another event but i don't understand how this function receive it. I think i need to set the parameter icsk_pending with the number of the event and put the package into the sk list of the socket. Can anyone explain me how this resending event work ?
I have done packet buffering and forwarding, but I used iptables, libnfnetlink, and libnet. That allowed me to do everything in user space. If you are directly modifying code in the network stack, you will really need a copy of "Understanding Linux Network Internals". This book tells and shows how the Linux network stack works.
 
1 members found this post helpful.
Old 10-19-2012, 07:37 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Moved: This thread is more suitable in Linux Kernel and has been moved accordingly to help your question t get he exposure it deserves.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] MMC/SD card driver problems on Linux2.6.29 quoctoan_3t Linux - Software 2 06-05-2012 01:19 AM
MMC/SD card driver problems on Linux2.6.29 quoctoan_3t Linux - Embedded & Single-board computer 0 06-04-2012 11:58 PM
Embedded MMC/SD card driver problems!!base on linux2.6.14.1 SharkCN Linux - Embedded & Single-board computer 2 08-05-2008 11:31 AM
Embedded MMC/SD card driver problems!!base on linux2.6.14.1 SharkCN Linux - Newbie 1 07-30-2008 09:46 PM
How to modify the TCP/IP mechanism? TimeSync Programming 3 10-12-2007 03:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 05:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration