Author: melifaro
Date: Tue Oct 27 22:11:09 2015
New Revision: 290075
URL: https://svnweb.freebsd.org/changeset/base/290075

Log:
  Use m_cat() to reassembly IPv6 packets.
  
  Submitted by: jonloony_gmail.com
  MFC after:    2 weeks
  Differential Revision:        https://reviews.freebsd.org/D3863

Modified:
  head/sys/netinet6/frag6.c

Modified: head/sys/netinet6/frag6.c
==============================================================================
--- head/sys/netinet6/frag6.c   Tue Oct 27 22:08:07 2015        (r290074)
+++ head/sys/netinet6/frag6.c   Tue Oct 27 22:11:09 2015        (r290075)
@@ -523,8 +523,8 @@ insert:
                frag6_deq(af6);
                while (t->m_next)
                        t = t->m_next;
-               t->m_next = IP6_REASS_MBUF(af6);
-               m_adj(t->m_next, af6->ip6af_offset);
+               m_adj(IP6_REASS_MBUF(af6), af6->ip6af_offset);
+               m_cat(t, IP6_REASS_MBUF(af6));
                free(af6, M_FTABLE);
                af6 = af6dwn;
        }
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to