diff options
-rw-r--r-- | sys/kern/uipc_mbuf2.c | 6 | ||||
-rw-r--r-- | sys/sys/mbuf.h | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/sys/kern/uipc_mbuf2.c b/sys/kern/uipc_mbuf2.c index ceb0881..4929af5 100644 --- a/sys/kern/uipc_mbuf2.c +++ b/sys/kern/uipc_mbuf2.c @@ -302,8 +302,8 @@ m_dup1(struct mbuf *m, int off, int len, int wait) } /* Free a packet tag. */ -static void -_m_tag_free(struct m_tag *t) +void +m_tag_free_default(struct m_tag *t) { #ifdef MAC if (t->m_tag_id == PACKET_TAG_MACLABEL) @@ -325,7 +325,7 @@ m_tag_alloc(u_int32_t cookie, int type, int len, int wait) if (t == NULL) return NULL; m_tag_setup(t, cookie, type, len); - t->m_tag_free = _m_tag_free; + t->m_tag_free = m_tag_free_default; return t; } diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h index 78053e9..4baef3a 100644 --- a/sys/sys/mbuf.h +++ b/sys/sys/mbuf.h @@ -648,6 +648,7 @@ struct mbuf *m_uiotombuf(struct uio *, int, int); struct m_tag *m_tag_alloc(u_int32_t, int, int, int); void m_tag_delete(struct mbuf *, struct m_tag *); void m_tag_delete_chain(struct mbuf *, struct m_tag *); +void m_tag_free_default(struct m_tag *); struct m_tag *m_tag_locate(struct mbuf *, u_int32_t, int, struct m_tag *); struct m_tag *m_tag_copy(struct m_tag *, int); int m_tag_copy_chain(struct mbuf *, struct mbuf *, int); |