Use m_fixhdr() rather than roll our own.

This commit is contained in:
Poul-Henning Kamp 2002-09-18 19:43:01 +00:00
parent 4e4425d486
commit a5554bf05b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=103553

View File

@ -1071,12 +1071,8 @@ ip_reass(struct mbuf *m, struct ipqhead *head, struct ipq *fp,
m->m_len += (IP_VHL_HL(ip->ip_vhl) << 2);
m->m_data -= (IP_VHL_HL(ip->ip_vhl) << 2);
/* some debugging cruft by sklower, below, will go away soon */
if (m->m_flags & M_PKTHDR) { /* XXX this should be done elsewhere */
register int plen = 0;
for (t = m; t; t = t->m_next)
plen += t->m_len;
m->m_pkthdr.len = plen;
}
if (m->m_flags & M_PKTHDR) /* XXX this should be done elsewhere */
m_fixhdr(m);
return (m);
dropfrag: