summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-09-18 20:04:30 +0000
committerphk <phk@FreeBSD.org>2002-09-18 20:04:30 +0000
commite58cc5950bff6e5807465a66b1bde3aab732890b (patch)
tree6981b96ec69089947473672874ed45e70ebedfe5 /share
parentbfed3f6fe96c44b7f23e2b9e4f769cd835195819 (diff)
downloadFreeBSD-src-e58cc5950bff6e5807465a66b1bde3aab732890b.zip
FreeBSD-src-e58cc5950bff6e5807465a66b1bde3aab732890b.tar.gz
Add m_fixhdr() and m_length().
Diffstat (limited to 'share')
-rw-r--r--share/man/man9/mbuf.910
1 files changed, 10 insertions, 0 deletions
diff --git a/share/man/man9/mbuf.9 b/share/man/man9/mbuf.9
index d7fc0d0..0aa93af 100644
--- a/share/man/man9/mbuf.9
+++ b/share/man/man9/mbuf.9
@@ -113,6 +113,10 @@
.Fc
.Ft void
.Fn m_cat "struct mbuf *m" "struct mbuf *n"
+.Ft unsigned
+.Fn m_fixhdr "struct mbuf *mbuf"
+.Ft unsigned
+.Fn m_length "struct mbuf *mbuf" "struct mbuf **last"
.Ft struct mbuf *
.Fn m_split "struct mbuf *mbuf" "int len" "int how"
.\"
@@ -469,6 +473,12 @@ It's safe to set
beyond the current chain end: zeroed mbufs will be allocated to fill the
space.
.\"
+.It Fn m_length buf last
+Return the length of the mbuf chain, and optionally a pointer to the last mbuf.
+.\"
+.It Fn m_fixhdr buf
+Set the packet-header length to the length of the mbuf chain.
+.\"
.It Fn m_devget buf len offset ifp copy
Copy data from a device local memory pointed to by
.Fa buf
OpenPOWER on IntegriCloud