git://git.onelab.eu
/
ipfw.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Free mtags for dummynet mbuf.
[ipfw.git]
/
dummynet
/
include
/
sys
/
mbuf.h
diff --git
a/dummynet/include/sys/mbuf.h
b/dummynet/include/sys/mbuf.h
index
e4e7591
..
a7f95a1
100644
(file)
--- 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)
{
static __inline void
m_freem(struct mbuf *m)
{
-#if 0
struct m_tag *t;
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);
}
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 */
};
/* we cannot pullup */