[BACK]Return to uipc_mbuf.c CVS log [TXT][DIR] 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.

Diff for /src/sys/kern/uipc_mbuf.c between version 1.158.4.2 and 1.158.4.3

version 1.158.4.2, 2018/04/05 11:48:13 version 1.158.4.3, 2018/04/17 08:27:18
Line 458  m_pkthdr_remove(struct mbuf *m)
Line 458  m_pkthdr_remove(struct mbuf *m)
 {  {
         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));

Legend:
Removed from v.1.158.4.2  
changed lines
  Added in v.1.158.4.3

CVSweb <webmaster@jp.NetBSD.org>