next up previous
Next: Tagging incoming packets Up: Design and implementation Previous: Overview

Tagging outgoing packets

All packets are tagged at the time that memory is allocated for them. For example, the following:


\begin{lstlisting}
if (!in_interrupt()) skb->skb_tag = nx_current_nid(); else skb->skb_tag = 0;
\end{lstlisting}

is invoked in the function alloc_skb.



2008-09-17