summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2002-06-22 11:29:08 +0000
committerluigi <luigi@FreeBSD.org>2002-06-22 11:29:08 +0000
commitae0152f4c1645e2948481426e810382b76d0ebda (patch)
tree17a572180cafbfd90d419cbc57b0101f8d23209f
parent2719fbacdb1bb5e6498b73e5a76925ceb01f983b (diff)
downloadFreeBSD-src-ae0152f4c1645e2948481426e810382b76d0ebda.zip
FreeBSD-src-ae0152f4c1645e2948481426e810382b76d0ebda.tar.gz
Define an mbuf type, MT_TAG, used for volatile annotations
prepended to mbuf chains in the network stack. Reuse a previoulsy unused value to avoid changes in other data structures.
-rw-r--r--sys/sys/mbuf.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h
index dec48ec..92e0167 100644
--- a/sys/sys/mbuf.h
+++ b/sys/sys/mbuf.h
@@ -204,6 +204,7 @@ struct mbuf {
#define MT_RIGHTS 12 /* access rights */
#define MT_IFADDR 13 /* interface address */
#endif
+#define MT_TAG 13 /* volatile metadata associated to pkts */
#define MT_CONTROL 14 /* extra-data protocol message */
#define MT_OOBDATA 15 /* expedited data */
#define MT_NTYPES 16 /* number of mbuf types for mbtypes[] */
@@ -419,10 +420,10 @@ struct mauxtag {
*
* As a temporary and low impact solution to replace the even uglier
* approach used so far in some parts of the network stack (which relies
- * on global variables), these annotations are stored in MT_CONTROL
+ * on global variables), these annotations are stored in MT_TAG
* mbufs (or lookalikes) prepended to the actual mbuf chain.
*
- * m_type = MT_CONTROL
+ * m_type = MT_TAG
* m_flags = m_tag_id
* m_next = next buffer in chain.
*
OpenPOWER on IntegriCloud