mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-17 15:27:36 +00:00
Use m_fixhdr() rather than roll our own.
This commit is contained in:
parent
4e4425d486
commit
a5554bf05b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=103553
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user