6

Am looking for an open source code for the TCP/IP stack. An explanation along the lines of the stack would also help me in understanding the different modules and their interactions. I tried searching but there is very less information relating to just the TCP/IP stack.

Thunderboltz
  • 163
  • 1
  • 2
  • 8

2 Answers2

6

You can browse the entire Linux kernel at LXR. For example, here's the implementation of TCP over IPv4. Be aware that a full, real-world TCP/IP stack is going to be huge and it's going to be difficult getting a feel from it just by studying source code.

There are many books available which give you more of an overview, such as this one and this one. Follow the "related titles" link in Amazon for many more...

Dean Harding
  • 19,871
  • 3
  • 51
  • 70
5

Besides the obvious answer of current OSS kernels (Linux and BSD are the usual suspects), there are some other smaller and easier to read implementations. A quick googling gave me these:

Javier
  • 9,888
  • 1
  • 26
  • 35