Subject: Re: m_copyback patch.
To: Wolfgang Solfrank <email@example.com>
From: Jason Thorpe <firstname.lastname@example.org>
Date: 01/12/1998 10:16:45
On Mon, 12 Jan 1998 13:18:08 +0100
email@example.com (Wolfgang Solfrank) wrote:
> The problem is that you cannot be sure that the mbuf does have MLEN/MHLEN
> at the address pointer to by mh_data (and thus returned by the mtod macro).
> The mh_data pointer might have been incremented beyond its initial value.
> Hell, it even might have been setup with an offset to allow later insertion
> of a header in front of the data placed into it initially.
Won't M_TRAILINGSPACE() give this to you?
Jason R. Thorpe firstname.lastname@example.org
NASA Ames Research Center Home: +1 408 866 1912
NAS: M/S 258-6 Work: +1 650 604 0935
Moffett Field, CA 94035 Pager: +1 415 428 6939