X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=dummynet%2Finclude%2Fsys%2Fmbuf.h;h=a7f95a15a65afb86ee67c09d2e7066b56db8524f;hb=eef3abf99143fa19c5abedb6940f599a656d5135;hp=e4e75911b184aecea4ffdf3aee1b665224a8c657;hpb=1c3dc9f45532c25adc21f297422f0f5a7420b8ca;p=ipfw.git diff --git a/dummynet/include/sys/mbuf.h b/dummynet/include/sys/mbuf.h index e4e7591..a7f95a1 100644 --- a/dummynet/include/sys/mbuf.h +++ b/dummynet/include/sys/mbuf.h @@ -143,15 +143,16 @@ m_tag_locate(struct mbuf *m, u_int32_t n, int x, struct m_tag *t) static __inline void m_freem(struct mbuf *m) { -#if 0 struct m_tag *t; + /* free the m_tag chain */ while ( (t = SLIST_FIRST(&m->m_pkthdr.tags) ) ) { SLIST_REMOVE_HEAD(&m->m_pkthdr.tags, m_tag_link); free(t, 0); } -#endif - free(m, 0); + + /* free the mbuf */ + free(m, M_IPFW); }; /* we cannot pullup */