Layer 3 (Network) - the idemIP stack: the cells of its units, its interfaces, and its tick. More...
#include "protocore_config.h"Go to the source code of this file.
Layer 3 (Network) - the idemIP stack: the cells of its units, its interfaces, and its tick.
The TCP/IP stack is idemIP, under include/idemIP. This module holds one cell for each unit of idemIP. It binds each interface to its link driver. Each call of ::StackNs::tick runs one pass of the stack. Worker 0 calls the tick. The stack takes no lock, because no other context calls into it.
Each cell comes from the plaintext cellblock. The cell counts to the owner of its unit, which IDEMIP_OWNERS names. worker.h puts those owners into the owner table of the program.
A pass drains each receive ring one frame at a time. Dispatch.input reads the frame, the reply that it builds goes out on the same interface, and the descriptor goes back to the engine. Then the services and the flush of idemIP run in the order that Tick enforces. Last, the engine gives back the transmit descriptors that it finished.
include/idemip_capabilities.h gives each IDEMIP_ENABLE_* value. idemIP sizes its tables from them and has no default for them.
Definition in file stack.h.