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.
- Anybody can ask a question
- Anybody can answer
- The best answers are voted up and rise to the top
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.
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: