Diff for /qemu/slirp/mbuf.c between versions 1.1.1.8 and 1.1.1.9

version 1.1.1.8, 2018/04/24 19:31:05 version 1.1.1.9, 2018/04/24 19:51:42
Line 32  m_init(Slirp *slirp) Line 32  m_init(Slirp *slirp)
     slirp->m_usedlist.m_next = slirp->m_usedlist.m_prev = &slirp->m_usedlist;      slirp->m_usedlist.m_next = slirp->m_usedlist.m_prev = &slirp->m_usedlist;
 }  }
   
   void m_cleanup(Slirp *slirp)
   {
       struct mbuf *m, *next;
   
       m = slirp->m_usedlist.m_next;
       while (m != &slirp->m_usedlist) {
           next = m->m_next;
           if (m->m_flags & M_EXT) {
               free(m->m_ext);
           }
           free(m);
           m = next;
       }
       m = slirp->m_freelist.m_next;
       while (m != &slirp->m_freelist) {
           next = m->m_next;
           free(m);
           m = next;
       }
   }
   
 /*  /*
  * Get an mbuf from the free list, if there are none   * Get an mbuf from the free list, if there are none
  * malloc one   * malloc one

Removed from v.1.1.1.8  
changed lines
  Added in v.1.1.1.9


unix.superglobalmegacorp.com