Subject: Re: SoC ideas - mbuf API
To: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
From: Pavel Cahyna <pcah8322@artax.karlin.mff.cuni.cz>
List: tech-net
Date: 06/26/2006 12:23:00
On Mon, Jun 26, 2006 at 07:04:52PM +0900, YAMAMOTO Takashi wrote:
> > The 1st problem: if the code does not use m_pullup/pulldown when it should, it
> > works in most cases, but when it encounters a packet fragmented in a right
> > way, it malfunctions.
> > 
> > Example: kern/29014.
> 
> i've played with some debug code in mtod() while ago.  (a patch attached)

Thanks. My ideas were similar. But I decided to replace the pointer type
in mtod by the pointed-to type, because otherwise there is the nonobvious
requirement of not using void*. Also it is easy to apply const in the
macro itself.

Pavel Cahyna