mbuf w/o pkthdr?

Sam sah at softcardsystems.com
Tue Oct 12 08:44:10 PDT 2004


>> 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



More information about the freebsd-arch mailing list