- Replace compat macros with function calls.

This commit is contained in:
Gleb Smirnoff 2013-03-16 08:58:28 +00:00
parent c95be8b536
commit aa8bd99d99
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

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