mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-04 07:31:11 +00:00
In INVARIANTS case also check that nodes do not pass queues of mbufs
each other.
This commit is contained in:
parent
c6118fcc1c
commit
b32cfb3228
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=149818
|
@ -330,8 +330,12 @@ static ng_ID_t nextID = 1;
|
||||||
int total; \
|
int total; \
|
||||||
\
|
\
|
||||||
M_ASSERTPKTHDR(m); \
|
M_ASSERTPKTHDR(m); \
|
||||||
for (total = 0, n = (m); n != NULL; n = n->m_next) \
|
for (total = 0, n = (m); n != NULL; n = n->m_next) { \
|
||||||
total += n->m_len; \
|
total += n->m_len; \
|
||||||
|
if (n->m_nextpkt != NULL) \
|
||||||
|
panic("%s: m_nextpkt", __func__); \
|
||||||
|
} \
|
||||||
|
|
||||||
if ((m)->m_pkthdr.len != total) { \
|
if ((m)->m_pkthdr.len != total) { \
|
||||||
panic("%s: %d != %d", \
|
panic("%s: %d != %d", \
|
||||||
__func__, (m)->m_pkthdr.len, total); \
|
__func__, (m)->m_pkthdr.len, total); \
|
||||||
|
|
Loading…
Reference in a new issue