Subject: Re: 802.1q hardware support
To: Manuel Bouyer <bouyer@antioche.lip6.fr>
From: None <itojun@iijlab.net>
List: tech-net
Date: 11/15/2000 05:54:22
>> >--- sys/mbuf.h	2000/08/18 16:19:23	1.53
>> >+++ sys/mbuf.h	2000/11/13 21:48:11
>> >@@ -114,6 +114,10 @@
>> > 	int	mh_len;			/* amount of data in this mbuf */
>> > 	short	mh_type;		/* type of data in this mbuf */
>> > 	short	mh_flags;		/* flags; see below */
>> >+	union   {
>> >+		int mh_info;
>> >+		void *mh_infop;
>> >+	} mh_info;			/* link-layer specific info */
>> > };
>> 	you may want to look at m->m_pkthdr.m_aux.  it can hold anything you
>> 	want.
>Seems a bit overkill for what I need here (allocate a new mbuf each time).

	well, do you want to change m_pkthdr declaration every time we have
	something new to be attached to an mbuf chain?

>Also isn't m_aux already used by higther-level protocols ?

	m_aux can take as many mbufs as you wish, by using two integer tags
	(struct m_auxtag - see sys/kern/uipc_mbuf2.c, m_aux_{find,add}).

itojun