mjt0704
mjt0704

Reputation: 67

How to learn linux network stacks source code

Recently, one of my work is to write network stacks using C++ in an OS developed by my team which is totally different from linux. However, I think how a deep understanding of linux network stacks may be helpful to design and implementation a well one.

Any advice or helpful material?

Upvotes: 2

Views: 1538

Answers (3)

Iwan BK
Iwan BK

Reputation: 44

TCP/IP Illustrated, Vol. 2: The Implementation It use FreeBSD 4.X source code as real world example.

Upvotes: 0

Brett Hale
Brett Hale

Reputation: 22328

LwIP or UIP, both originally by Adam Dunkels. Particularly LwIP - they are small, and well documented, and have been ported to embedded devices. It would take a lot of work to try and learn from BSD / Linux network stack source code.

Upvotes: 3

nsfyn55
nsfyn55

Reputation: 15363

Unix Network Programming by W. Richard Stevens

Upvotes: 5

Related Questions