Module Name:    src
Committed By:   maxv
Date:           Fri Apr 13 08:44:41 UTC 2018

Modified Files:
        src/sys/sys: mbuf.h

Log Message:
Add a KASSERT, we want M_PKTHDR.


To generate a diff of this commit:
cvs rdiff -u -r1.184 -r1.185 src/sys/sys/mbuf.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/sys/mbuf.h
diff -u src/sys/sys/mbuf.h:1.184 src/sys/sys/mbuf.h:1.185
--- src/sys/sys/mbuf.h:1.184	Fri Apr 13 07:36:11 2018
+++ src/sys/sys/mbuf.h	Fri Apr 13 08:44:41 2018
@@ -1,4 +1,4 @@
-/*	$NetBSD: mbuf.h,v 1.184 2018/04/13 07:36:11 maxv Exp $	*/
+/*	$NetBSD: mbuf.h,v 1.185 2018/04/13 08:44:41 maxv Exp $	*/
 
 /*
  * Copyright (c) 1996, 1997, 1999, 2001, 2007 The NetBSD Foundation, Inc.
@@ -585,6 +585,7 @@ do {									\
  */
 #define	M_COPY_PKTHDR(to, from)						\
 do {									\
+	KASSERT(((from)->m_flags & M_PKTHDR) != 0);			\
 	(to)->m_pkthdr = (from)->m_pkthdr;				\
 	(to)->m_flags = (from)->m_flags & M_COPYFLAGS;			\
 	SLIST_INIT(&(to)->m_pkthdr.tags);				\

Reply via email to