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:
Darren Reed 2004-12-16 21:02:16 +00:00
parent 527055d12f
commit 6de0f6c8b8

View file

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