Linux IP Networking
A Guide to the Implementation and Modification of the Linux Protocol Stack (UNH-CS TR 00-04)
Author: Glenn Herrin
Faculty supervisor: Radim Bartoš
Abstract
This document is a guide to understanding how the Linux kernel (version 2.2.14 specifically) implements networking protocols, focused primarily on the Internet Protocol (IP). It is intended as a complete reference for experimenters with overviews, walk-throughs, source code explanations, and examples. The first part contains an in-depth examination of the code, data structures, and functionality involved with networking. There are chapters on initialization, connections and sockets, and receiving, transmitting, and forwarding packets. The second part contains detailed instructions for modifiying the kernel source code and installing new modules. There are chapters on kernel installation, modules, the proc file system, and a complete example.
HTML Document (186 kB)
Encapsulated PostScript (668 kB)
Compressed PostScript (202 kB)