Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Oct 2004 11:42:32 -0500 (EST)
From:      Sam <sah@softcardsystems.com>
To:        =?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?= <des@des.no>
Cc:        freebsd-arch@freebsd.org
Subject:   Re: mbuf w/o pkthdr?
Message-ID:  <Pine.LNX.4.60.0410121136540.30953@athena>
In-Reply-To: <xzpy8ict0cy.fsf@dwp.des.no>
References:  <Pine.LNX.4.60.0410121115430.30953@athena> <xzpy8ict0cy.fsf@dwp.des.no>

next in thread | previous in thread | raw e-mail | index | archive | help
>> Are all packets supposed to have the M_PKTHDR flag?  Why?
>
> IIRC, M_PKTHDR indicates the first mbuf in a chain when a packet is
> split across multiple mbufs.  This usually only happens for outgoing
> packets, where protocol headers are constructed in separate mbufs
> which are prepended to the chain as the packet moves down the stack.

That's kind of my understanding (with some PACKET_TAG* stuff going on).

I don't have split headers, though.  Neither would an arp frame, but
he too gets a packet header and fills it out.

I don't mind following suit, I'm just wondering what the convention is
for.  Perhaps we use mbufs without packet headers for something special?

Sam



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.60.0410121136540.30953>