mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Use m_fixhdr() rather than roll our own.
This commit is contained in:
parent
4e4425d486
commit
a5554bf05b
1 changed files with 2 additions and 6 deletions
|
|
@ -1071,12 +1071,8 @@ inserted:
|
|||
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 a new issue