Use the correct mbuf type for MGET().

This commit is contained in:
Andre Oppermann 2005-08-30 16:35:27 +00:00
parent 0a710f3b71
commit e0aec68255
5 changed files with 5 additions and 5 deletions

View File

@ -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);

View File

@ -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;

View File

@ -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);

View File

@ -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);

View File

@ -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;