Use the correct mbuf type for MGET().
This commit is contained in:
parent
f7ffe965a1
commit
02715a1de8
@ -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);
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user