From 02715a1de8ff9b7eb30ac50221e7a9c2a8e4edd4 Mon Sep 17 00:00:00 2001 From: andre Date: Tue, 30 Aug 2005 16:35:27 +0000 Subject: [PATCH] Use the correct mbuf type for MGET(). --- sys/netinet/ip_input.c | 2 +- sys/netinet/ip_output.c | 2 +- sys/netinet/tcp_subr.c | 2 +- sys/netinet/tcp_timewait.c | 2 +- sys/netinet6/ip6_output.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index eb42a4d4bccb..107ef1f20077 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -1601,7 +1601,7 @@ ip_srcroute(m0) if (opts->ip_nhops == 0) return (NULL); - m = m_get(M_DONTWAIT, MT_HEADER); + m = m_get(M_DONTWAIT, MT_DATA); if (m == NULL) return (NULL); diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c index b292d803eb41..900cd1f35fb2 100644 --- a/sys/netinet/ip_output.c +++ b/sys/netinet/ip_output.c @@ -1173,7 +1173,7 @@ ip_ctloutput(so, sopt) error = EMSGSIZE; break; } - MGET(m, sopt->sopt_td ? M_TRYWAIT : M_DONTWAIT, MT_HEADER); + MGET(m, sopt->sopt_td ? M_TRYWAIT : M_DONTWAIT, MT_DATA); if (m == NULL) { error = ENOBUFS; break; diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c index 659ec2a533c9..b2f34c1b806b 100644 --- a/sys/netinet/tcp_subr.c +++ b/sys/netinet/tcp_subr.c @@ -378,7 +378,7 @@ tcpip_maketemplate(inp) struct mbuf *m; struct tcptemp *n; - m = m_get(M_DONTWAIT, MT_HEADER); + m = m_get(M_DONTWAIT, MT_DATA); if (m == NULL) return (0); m->m_len = sizeof(struct tcptemp); diff --git a/sys/netinet/tcp_timewait.c b/sys/netinet/tcp_timewait.c index 659ec2a533c9..b2f34c1b806b 100644 --- a/sys/netinet/tcp_timewait.c +++ b/sys/netinet/tcp_timewait.c @@ -378,7 +378,7 @@ tcpip_maketemplate(inp) struct mbuf *m; struct tcptemp *n; - m = m_get(M_DONTWAIT, MT_HEADER); + m = m_get(M_DONTWAIT, MT_DATA); if (m == NULL) return (0); m->m_len = sizeof(struct tcptemp); diff --git a/sys/netinet6/ip6_output.c b/sys/netinet6/ip6_output.c index f207307b6b07..39ea60226181 100644 --- a/sys/netinet6/ip6_output.c +++ b/sys/netinet6/ip6_output.c @@ -1814,7 +1814,7 @@ do { \ break; } /* XXX */ - MGET(m, sopt->sopt_td ? M_WAIT : M_DONTWAIT, MT_HEADER); + MGET(m, sopt->sopt_td ? M_WAIT : M_DONTWAIT, MT_DATA); if (m == 0) { error = ENOBUFS; break;