diff options
author | glebius <glebius@FreeBSD.org> | 2004-10-10 09:16:48 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2004-10-10 09:16:48 +0000 |
commit | 0dda31b4f9124e935eb487053875a46a0736fdcb (patch) | |
tree | 21bc13f747714b04a219ff4fc15e72d6a9f9239a /sys/kern/uipc_mbuf2.c | |
parent | 1d181e7321e60436a85de690f633ee15f8b2f939 (diff) | |
download | FreeBSD-src-0dda31b4f9124e935eb487053875a46a0736fdcb.zip FreeBSD-src-0dda31b4f9124e935eb487053875a46a0736fdcb.tar.gz |
Revert last commit since it breaks API.
Requested by: sam
Diffstat (limited to 'sys/kern/uipc_mbuf2.c')
-rw-r--r-- | sys/kern/uipc_mbuf2.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/sys/kern/uipc_mbuf2.c b/sys/kern/uipc_mbuf2.c index 52019ad..ceb0881 100644 --- a/sys/kern/uipc_mbuf2.c +++ b/sys/kern/uipc_mbuf2.c @@ -301,14 +301,9 @@ m_dup1(struct mbuf *m, int off, int len, int wait) return n; } -/* - * Free a packet tag. - * This function should not be called directly, unless you know what you - * are doing. Use m_tag_delete() or (t->m_tag_free)(t) instead, when you - * work with a tag that you haven't allocated yourself. - */ -void -m_tag_free(struct m_tag *t) +/* Free a packet tag. */ +static void +_m_tag_free(struct m_tag *t) { #ifdef MAC if (t->m_tag_id == PACKET_TAG_MACLABEL) @@ -330,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; return t; } @@ -341,7 +336,7 @@ m_tag_delete(struct mbuf *m, struct m_tag *t) KASSERT(m && t, ("m_tag_delete: null argument, m %p t %p", m, t)); m_tag_unlink(m, t); - (t->m_tag_free)(t); + m_tag_free(t); } /* Unlink and free a packet tag chain, starting from given tag. */ |