summaryrefslogtreecommitdiffstats
path: root/sys/sys/mbuf.h
diff options
context:
space:
mode:
authorandre <andre@FreeBSD.org>2005-11-02 13:46:32 +0000
committerandre <andre@FreeBSD.org>2005-11-02 13:46:32 +0000
commit0df84f5a83def3e1548e39bb43b0c177d50265fa (patch)
tree7cfb57b5672b497ffd3064153c31cb0a738e8f19 /sys/sys/mbuf.h
parent728b935c7f99f10947da6d54873e625c1a7a69c7 (diff)
downloadFreeBSD-src-0df84f5a83def3e1548e39bb43b0c177d50265fa.zip
FreeBSD-src-0df84f5a83def3e1548e39bb43b0c177d50265fa.tar.gz
Retire MT_HEADER mbuf type and change its users to use MT_DATA.
Having an additional MT_HEADER mbuf type is superfluous and redundant as nothing depends on it. It only adds a layer of confusion. The distinction between header mbuf's and data mbuf's is solely done through the m->m_flags M_PKTHDR flag. Non-native code is not changed in this commit. For compatibility MT_HEADER is mapped to MT_DATA. Sponsored by: TCP/IP Optimization Fundraise 2005
Diffstat (limited to 'sys/sys/mbuf.h')
-rw-r--r--sys/sys/mbuf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h
index 7696fa4..91ab0b2 100644
--- a/sys/sys/mbuf.h
+++ b/sys/sys/mbuf.h
@@ -221,7 +221,7 @@ struct mbuf {
*/
#define MT_NOTMBUF 0 /* USED INTERNALLY ONLY! Object is not mbuf */
#define MT_DATA 1 /* dynamic (data) allocation */
-#define MT_HEADER 2 /* packet header */
+#define MT_HEADER MT_DATA /* packet header, use M_PKTHDR instead */
#if 0
#define MT_SOCKET 3 /* socket structure */
#define MT_PCB 4 /* protocol control block */
OpenPOWER on IntegriCloud