Module Name: src Committed By: maxv Date: Mon Jan 15 13:05:40 UTC 2018
Modified Files: src/sys/net: if.h Log Message: Add a KASSERT in IFQ_CLASSIFY, we really need to make sure the given mbuf is the top of the chain. To generate a diff of this commit: cvs rdiff -u -r1.257 -r1.258 src/sys/net/if.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/net/if.h diff -u src/sys/net/if.h:1.257 src/sys/net/if.h:1.258 --- src/sys/net/if.h:1.257 Mon Dec 18 08:24:29 2017 +++ src/sys/net/if.h Mon Jan 15 13:05:40 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: if.h,v 1.257 2017/12/18 08:24:29 ozaki-r Exp $ */ +/* $NetBSD: if.h,v 1.258 2018/01/15 13:05:40 maxv Exp $ */ /*- * Copyright (c) 1999, 2000, 2001 The NetBSD Foundation, Inc. @@ -986,6 +986,7 @@ do { \ #define IFQ_CLASSIFY(ifq, m, af) \ do { \ + KASSERT((m->m_flags & M_PKTHDR) != 0); \ mutex_enter((ifq)->ifq_lock); \ if (ALTQ_IS_ENABLED((ifq))) { \ if (ALTQ_NEEDS_CLASSIFY((ifq))) \