summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--share/man/man9/Makefile6
-rw-r--r--share/man/man9/mbuf.911
2 files changed, 12 insertions, 5 deletions
diff --git a/share/man/man9/Makefile b/share/man/man9/Makefile
index 0ec403f1429..4eb0c4a59a9 100644
--- a/share/man/man9/Makefile
+++ b/share/man/man9/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.249 2015/10/30 09:48:03 bluhm Exp $
+# $OpenBSD: Makefile,v 1.250 2015/10/30 21:21:19 benno Exp $
# $NetBSD: Makefile,v 1.4 1996/01/09 03:23:01 thorpej Exp $
# Makefile for section 9 (kernel function and variable) manual pages.
@@ -244,8 +244,8 @@ MLINKS+=membar_sync.9 membar_enter.9 membar_sync.9 membar_exit.9 \
membar_sync.9 membar_producer.9 membar_sync.9 membar_consumer.9
MLINKS+=mbuf.9 m_copym2.9 mbuf.9 m_copym.9 mbuf.9 m_free.9 \
mbuf.9 m_get.9 mbuf.9 MGET.9 mbuf.9 m_getclr.9 mbuf.9 m_gethdr.9 \
- mbuf.9 MGETHDR.9 mbuf.9 m_prepend.9 mbuf.9 M_PREPEND.9 \
- mbuf.9 m_pulldown.9 mbuf.9 m_pullup.9 \
+ mbuf.9 m_resethdr.9 mbuf.9 MGETHDR.9 mbuf.9 m_prepend.9 \
+ mbuf.9 M_PREPEND.9 mbuf.9 m_pulldown.9 mbuf.9 m_pullup.9 \
mbuf.9 m_split.9 \
mbuf.9 m_inject.9 mbuf.9 m_getptr.9 mbuf.9 m_adj.9 mbuf.9 m_copyback.9 \
mbuf.9 m_defrag.9 mbuf.9 m_freem.9 mbuf.9 m_reclaim.9 \
diff --git a/share/man/man9/mbuf.9 b/share/man/man9/mbuf.9
index bb803426145..ff70ab9112c 100644
--- a/share/man/man9/mbuf.9
+++ b/share/man/man9/mbuf.9
@@ -1,4 +1,4 @@
-.\" $OpenBSD: mbuf.9,v 1.91 2015/10/08 14:09:34 jmc Exp $
+.\" $OpenBSD: mbuf.9,v 1.92 2015/10/30 21:21:19 benno Exp $
.\"
.\" Copyright (c) 2001 Jean-Jacques Bernard-Gundol <jjbg@openbsd.org>
.\" All rights reserved.
@@ -25,7 +25,7 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: October 8 2015 $
+.Dd $Mdocdate: October 30 2015 $
.Dt MBUF 9
.Os
.Sh NAME
@@ -44,6 +44,8 @@
.Fn MGET "struct mbuf *m" "int how" "int type"
.Ft struct mbuf *
.Fn m_getclr "int how" "int type"
+.Ft void
+.Fn m_resethdr struct mbuf *
.Ft struct mbuf *
.Fn m_gethdr "int how" "int type"
.Fn MGETHDR "struct mbuf *m" "int how" "int type"
@@ -445,6 +447,11 @@ See
.Fn m_get
for a description of
.Fa how .
+.It Fn m_resethdr "struct mbuf *"
+Deletes all
+.Xr pf 4
+data and all tags attached to a
+.Fa mbuf .
.It Fn m_gethdr "int how" "int type"
Return a pointer to an mbuf of the type specified after initializing
it to contain a packet header.