next up previous
Next: UDP Up: Tagging incoming packets Previous: Tagging incoming packets

ICMP

For ICMP received in response to ones sent out, the tag of the packet is simply set to the tag of the connection. The connection record is updated when the outgoing packet is seen:


\begin{lstlisting}
if ((*pskb)->mark>0)
{
ct->xid[0]=(*pskb)->mark;
}
if (ct->xid[0] > 0) {
mark = ct->xid[0];
}
\end{lstlisting}



2008-09-17