diff options
author | Bret Lambert <blambert@cvs.openbsd.org> | 2011-04-03 09:49:25 +0000 |
---|---|---|
committer | Bret Lambert <blambert@cvs.openbsd.org> | 2011-04-03 09:49:25 +0000 |
commit | 955c4b2765c723b52e26247105e6d8aa82587c81 (patch) | |
tree | 1026202f7e88fb5f1e80e9667f21e07ec8a7eabd | |
parent | 079700a4def968414f36f82257122fa0e05b8d6f (diff) |
Document m_dup_pkthdr function.
ok claudio@
-rw-r--r-- | share/man/man9/mbuf.9 | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/share/man/man9/mbuf.9 b/share/man/man9/mbuf.9 index f216ad58663..512f04067a5 100644 --- a/share/man/man9/mbuf.9 +++ b/share/man/man9/mbuf.9 @@ -1,4 +1,4 @@ -.\" $OpenBSD: mbuf.9,v 1.49 2011/01/30 16:51:38 jmc Exp $ +.\" $OpenBSD: mbuf.9,v 1.50 2011/04/03 09:49:24 blambert 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: January 30 2011 $ +.Dd $Mdocdate: April 3 2011 $ .Dt MBUF 9 .Os .Sh NAME @@ -93,6 +93,8 @@ .Fn M_READONLY "struct mbuf *m" .Fn M_LEADINGSPACE "struct mbuf *m" .Fn M_TRAILINGSPACE "struct mbuf *m" +.Ft int +.Fn m_dup_pkthder "struct mbuf *to" "struct mbuf *from" .Bd -literal #define MLEN (MSIZE - sizeof(struct m_hdr)) #define MHLEN (MLEN - sizeof(struct pkthdr)) @@ -682,6 +684,11 @@ in the mbuf pointed to by Compute the amount of space available after the end of data in the mbuf pointed to by .Fa m . +.It Fn m_dup_pkthdr "struct mbuf *to" "struct mbuf *from" +Copy mbuf packet header, including mbuf tags, from +.Fa from +to +.Fa to . .El .Sh CODE REFERENCES The mbuf management functions are implemented in the files |