summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorangelos <angelos@openbsd.org>2001-06-25 06:40:52 +0000
committerangelos <angelos@openbsd.org>2001-06-25 06:40:52 +0000
commit146823c2466611de65e372a8399bc73a1bf91b29 (patch)
treefc3a855509a10da75dc8a5744451391a5e44e090
parentBetter wording. (diff)
downloadwireguard-openbsd-146823c2466611de65e372a8399bc73a1bf91b29.tar.xz
wireguard-openbsd-146823c2466611de65e372a8399bc73a1bf91b29.zip
Mention M_COPY_HDR/M_COPY_PKTHDR vs. M_DUP_HDR/M_DUP_PKTHDR wrt. tags
-rw-r--r--share/man/man9/mbuf_tags.918
1 files changed, 16 insertions, 2 deletions
diff --git a/share/man/man9/mbuf_tags.9 b/share/man/man9/mbuf_tags.9
index 84e090b42a5..5fd09d3ef16 100644
--- a/share/man/man9/mbuf_tags.9
+++ b/share/man/man9/mbuf_tags.9
@@ -1,4 +1,4 @@
-.\" $OpenBSD: mbuf_tags.9,v 1.4 2001/06/25 06:37:04 angelos Exp $
+.\" $OpenBSD: mbuf_tags.9,v 1.5 2001/06/25 06:40:52 angelos Exp $
.\"
.\" The author of this man page is Angelos D. Keromytis (angelos@cis.upenn.edu)
.\"
@@ -243,7 +243,21 @@ returns the tag following
.Va tag
in packet
.Va mbuf .
-.Sh CODE REFERENCS
+.Pp
+The
+.Fn M_COPY_PKTHDR
+and
+.Fn M_COPY_HDR
+macros defined in
+.Pa sys/sys/mbuf.h
+move the tags from the old to the new mbuf.
+The
+.Fn M_DUP_PKTHDR
+and
+.Fn M_DUP_HDR
+create a new copy of the tag chain for the new mbuf.
+.Pp
+.Sh CODE REFERENCES
The tag-manipulating code is contained in the file
.Pa sys/kern/uipc_mbuf2.c .
.Sh SEE ALSO