mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Using just m_pullup to get all of the interesting bits in packet into one
buffer doesn't work for ipv6 packets, so use m_defrag() here instead as an easy drop-in replacement. PR: 70399
This commit is contained in:
parent
527055d12f
commit
6de0f6c8b8
1 changed files with 6 additions and 1 deletions
|
|
@ -2433,7 +2433,12 @@ void *ipin;
|
|||
ATOMIC_INCL(frstats[out].fr_pull[0]);
|
||||
qf->qf_data = MTOD(m, char *) + ipoff;
|
||||
# else
|
||||
m = m_pullup(m, len);
|
||||
# if (__FreeBSD_version >= 490000)
|
||||
if ((len > MHLEN) && ((m->m_flags & M_PKTHDR) != 0))
|
||||
m = m_defrag(m, M_DONTWAIT);
|
||||
else
|
||||
# endif
|
||||
m = m_pullup(m, len);
|
||||
*fin->fin_mp = m;
|
||||
if (m == NULL) {
|
||||
ATOMIC_INCL(frstats[out].fr_pull[1]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue