Rename _m_tag_free() to m_tag_free_default() and make it non-static.
Approved by: sam
This commit is contained in:
parent
2fd3a32ee1
commit
366538f251
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user