Return to uipc_mbuf.c CVS log | Up to [cvs.NetBSD.org] / src / sys / kern |
Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. |
version 1.158.4.2, 2018/04/05 11:48:13 | version 1.158.4.3, 2018/04/17 08:27:18 | ||
---|---|---|---|
|
|
||
{ | { | ||
KASSERT(m->m_flags & M_PKTHDR); | KASSERT(m->m_flags & M_PKTHDR); | ||
if (M_READONLY(m)) { | |||
/* Nothing we can do. */ | |||
return; | |||
} | |||
m_tag_delete_chain(m, NULL); | m_tag_delete_chain(m, NULL); | ||
m->m_flags &= ~M_PKTHDR; | m->m_flags &= ~M_PKTHDR; | ||
memset(&m->m_pkthdr, 0, sizeof(m->m_pkthdr)); | memset(&m->m_pkthdr, 0, sizeof(m->m_pkthdr)); |