Subject: Re: Netem does not work with loopback

From: Stephen Hemminger <[email-masked]>
Date: Fri, 14 Jul 2006 08:38:47 -0700

On Fri, 14 Jul 2006 16:34:30 +0200
Guillaume Chazarain <[email-masked]> wrote:

> Hello,
> 
> Is it a known problem that the Netem qdisc is very unreliable on the 
> loopback (unlike on a true NIC)?
> 
> This seems to come from its usage of skb->cb which conflicts with IPCB. 
> For instance, the field
> IPCB(skb)->opt.optlen becomes non-null and memory corruption follows.
> 
> I ``worked around'' this conflict with the following ugly hack:

Isn't the skb owned by netem at that point...

-- 
If one would give me six lines written by the hand of the most honest
man, I would find something in them to have him hanged. -- Cardinal Richlieu