PERFORCE change 148769 for review

Sam Leffler sam at FreeBSD.org
Fri Aug 29 03:02:27 UTC 2008


http://perforce.freebsd.org/chv.cgi?CH=148769

Change 148769 by sam at sam_ebb on 2008/08/29 03:02:06

	fix packet setup

Affected files ...

.. //depot/projects/vap/tools/regression/net80211/ccmp/test_ccmp.c#4 edit

Differences ...

==== //depot/projects/vap/tools/regression/net80211/ccmp/test_ccmp.c#4 (text+ko) ====

@@ -611,8 +611,9 @@
 	if (remainder) {
 		n = m_get(M_NOWAIT, MT_DATA);
 		KASSERT(n != NULL, ("cannot split mbuf chain!"));
-		m_append(m, remainder, p + (len-remainder));
+		m_append(n, remainder, p + (len-remainder));
 		m->m_next = n;
+		m->m_pkthdr.len += remainder;
 	}
 
 	return m;


More information about the p4-projects mailing list