summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorangelos <angelos@openbsd.org>2001-05-27 00:38:25 +0000
committerangelos <angelos@openbsd.org>2001-05-27 00:38:25 +0000
commitf16a7cd22a56ae8746d76fab4c579e6ab2ab695a (patch)
treec5d8c46f64974df8b4eea35b0afec41735c89630 /sys
parentSplit IPsec-related tags into 4 (instead of 2) names, for (diff)
downloadwireguard-openbsd-f16a7cd22a56ae8746d76fab4c579e6ab2ab695a.tar.xz
wireguard-openbsd-f16a7cd22a56ae8746d76fab4c579e6ab2ab695a.zip
m_tag_first()/m_tag_next()
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/uipc_mbuf2.c19
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));
+}