- Replace compat macros with function calls.
This commit is contained in:
parent
c95be8b536
commit
aa8bd99d99
@ -2203,7 +2203,7 @@ igmp_v1v2_queue_report(struct in_multi *inm, const int type)
|
||||
|
||||
ifp = inm->inm_ifp;
|
||||
|
||||
MGETHDR(m, M_NOWAIT, MT_DATA);
|
||||
m = m_gethdr(M_NOWAIT, MT_DATA);
|
||||
if (m == NULL)
|
||||
return (ENOMEM);
|
||||
MH_ALIGN(m, sizeof(struct ip) + sizeof(struct igmp));
|
||||
|
@ -500,7 +500,7 @@ ip_insertoptions(struct mbuf *m, struct mbuf *opt, int *phlen)
|
||||
*phlen = 0;
|
||||
return (m);
|
||||
}
|
||||
M_MOVE_PKTHDR(n, m);
|
||||
m_move_pkthdr(n, m);
|
||||
n->m_pkthdr.rcvif = NULL;
|
||||
n->m_pkthdr.len += optlen;
|
||||
m->m_len -= sizeof(struct ip);
|
||||
|
@ -898,7 +898,7 @@ tcp_output(struct tcpcb *tp)
|
||||
else
|
||||
TCPSTAT_INC(tcps_sndwinup);
|
||||
|
||||
MGETHDR(m, M_NOWAIT, MT_DATA);
|
||||
m = m_gethdr(M_NOWAIT, MT_DATA);
|
||||
if (m == NULL) {
|
||||
error = ENOBUFS;
|
||||
goto out;
|
||||
|
Loading…
Reference in New Issue
Block a user