diff options
author | andre <andre@FreeBSD.org> | 2005-11-02 13:46:32 +0000 |
---|---|---|
committer | andre <andre@FreeBSD.org> | 2005-11-02 13:46:32 +0000 |
commit | 0df84f5a83def3e1548e39bb43b0c177d50265fa (patch) | |
tree | 7cfb57b5672b497ffd3064153c31cb0a738e8f19 /sys/netipx | |
parent | 728b935c7f99f10947da6d54873e625c1a7a69c7 (diff) | |
download | FreeBSD-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/netipx')
-rw-r--r-- | sys/netipx/ipx_ip.c | 2 | ||||
-rw-r--r-- | sys/netipx/spx_usrreq.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/netipx/ipx_ip.c b/sys/netipx/ipx_ip.c index e100e51..e88b923 100644 --- a/sys/netipx/ipx_ip.c +++ b/sys/netipx/ipx_ip.c @@ -260,7 +260,7 @@ ipxipoutput(ifp, m, dst, rt) /* following clause not necessary on vax */ if (3 & (intptr_t)m->m_data) { /* force longword alignment of ip hdr */ - struct mbuf *m0 = m_gethdr(MT_HEADER, M_DONTWAIT); + struct mbuf *m0 = m_gethdr(MT_DATA, M_DONTWAIT); if (m0 == NULL) { m_freem(m); return (ENOBUFS); diff --git a/sys/netipx/spx_usrreq.c b/sys/netipx/spx_usrreq.c index 30bc70a..def6eb1 100644 --- a/sys/netipx/spx_usrreq.c +++ b/sys/netipx/spx_usrreq.c @@ -813,7 +813,7 @@ spx_output(cb, m0) m->m_next = m1; } } - m = m_gethdr(M_DONTWAIT, MT_HEADER); + m = m_gethdr(M_DONTWAIT, MT_DATA); if (m == NULL) { m_freem(m0); return (ENOBUFS); @@ -1026,7 +1026,7 @@ send: spxstat.spxs_sndprobe++; if (cb->s_flags & SF_ACKNOW) spxstat.spxs_sndacks++; - m = m_gethdr(M_DONTWAIT, MT_HEADER); + m = m_gethdr(M_DONTWAIT, MT_DATA); if (m == NULL) return (ENOBUFS); /* @@ -1373,7 +1373,7 @@ spx_attach(so, proto, td) } sb = &so->so_snd; - mm = m_getclr(M_DONTWAIT, MT_HEADER); + mm = m_getclr(M_DONTWAIT, MT_DATA); if (mm == NULL) { FREE(cb, M_PCB); error = ENOBUFS; |