LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-11-2008, 10:15 PM   #1
indrajeetmopari
LQ Newbie
 
Registered: Feb 2008
Posts: 1

Rep: Reputation: 0
Question The .c file of kernel source code where TCP connection takes place.


TCP connection establishes with 3 way hand shaking signals.

So can any one tell me, where actually this takes place in linux source code.

In which .c file its code is written.
 
Old 02-12-2008, 06:40 PM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
I believe what your looking for can be found here.
 
Old 02-12-2008, 06:52 PM   #3
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Just to clarify the 3 states....

You either start in TCP_SYN_SENT or TCP_SYN_RECV. If you started in TCP_SYN_RECV it means you got a connection request and you sent an ACK. At this point you are waiting for the return ACK in the three way handshake. If you are in the TCP_SYN_SENT it means you sent the connection request and your are waiting for the return ACK so you can send the final ACK. Once the three phase handshake is complete you go into TCP_ESTABLISHED.
 
  


Reply

Tags
kernel, networking



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
Source code to steven's TCP/IP 2 ... ? dbee Linux - Networking 1 04-19-2006 05:30 AM
Trying to locate source code for TCP/IP stack in Red Hat 9.0 pjz Linux - Software 1 06-13-2005 01:41 PM
TCP/IP stack source code tarazan Linux - Networking 3 05-11-2005 02:56 PM
tcp source code & window options arch_linux Programming 2 09-10-2003 11:52 AM
nonblocking TCP/IP source code? Mad_C Programming 13 05-27-2003 05:39 AM

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

All times are GMT -5. The time now is 05:57 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