diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-05-27 00:38:26 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-05-27 00:38:26 +0000 |
commit | b29302ef52836bf1ca4cdc550448dff28cecbe41 (patch) | |
tree | 37b2c24315df4c452a4a3a56223ddfedbaaf7ee6 | |
parent | 0b461d11741fc8866ac2ca195c200bd6d576fb19 (diff) |
m_tag_first()/m_tag_next()
-rw-r--r-- | sys/kern/uipc_mbuf2.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/sys/kern/uipc_mbuf2.c b/sys/kern/uipc_mbuf2.c index be6d48a2d32..9ee8315c98a 100644 --- a/sys/kern/uipc_mbuf2.c +++ b/sys/kern/uipc_mbuf2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_mbuf2.c,v 1.12 2001/05/26 07:00:02 angelos Exp $ */ +/* $OpenBSD: uipc_mbuf2.c,v 1.13 2001/05/27 00:38:25 angelos Exp $ */ /* $KAME: uipc_mbuf2.c,v 1.29 2001/02/14 13:42:10 itojun Exp $ */ /* $NetBSD: uipc_mbuf.c,v 1.40 1999/04/01 00:23:25 thorpej Exp $ */ @@ -413,3 +413,20 @@ m_tag_init(m) { LIST_INIT(&m->m_pkthdr.tags); } + +/* Get first tag in chain. */ +struct m_tag * +m_tag_first(m) + struct mbuf *m; +{ + return (LIST_FIRST(&m->m_pkthdr.tags)); +} + +/* Get next tag in chain. */ +struct m_tag * +m_tag_next(m, t) + struct mbuf *m; + struct m_tag *t; +{ + return (LIST_NEXT(t, m_tag_link)); +} |