mbuf_tags.9 (137953) | mbuf_tags.9 (140140) |
---|---|
1.\" $OpenBSD: mbuf_tags.9,v 1.18 2003/12/08 07:07:35 mcbride Exp $ 2.\" 3.\" The authors of this man page are Angelos D. Keromytis 4.\" (angelos@cis.upenn.edu), Gleb Smirnoff <glebius@cell.sick.ru>, and 5.\" Robert Watson <rwatson@FreeBSD.org> 6.\" 7.\" Copyright (c) 2004 Robert N. M. Watson 8.\" Copyright (c) 2001 Angelos D. Keromytis --- 4 unchanged lines hidden (view full) --- 13.\" or modification of this software. 14.\" 15.\" THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR 16.\" IMPLIED WARRANTY. IN PARTICULAR, NONE OF THE AUTHORS MAKES ANY 17.\" REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE 18.\" MERCHANTABILITY OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR 19.\" PURPOSE. 20.\" | 1.\" $OpenBSD: mbuf_tags.9,v 1.18 2003/12/08 07:07:35 mcbride Exp $ 2.\" 3.\" The authors of this man page are Angelos D. Keromytis 4.\" (angelos@cis.upenn.edu), Gleb Smirnoff <glebius@cell.sick.ru>, and 5.\" Robert Watson <rwatson@FreeBSD.org> 6.\" 7.\" Copyright (c) 2004 Robert N. M. Watson 8.\" Copyright (c) 2001 Angelos D. Keromytis --- 4 unchanged lines hidden (view full) --- 13.\" or modification of this software. 14.\" 15.\" THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR 16.\" IMPLIED WARRANTY. IN PARTICULAR, NONE OF THE AUTHORS MAKES ANY 17.\" REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE 18.\" MERCHANTABILITY OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR 19.\" PURPOSE. 20.\" |
21.\" $FreeBSD: head/share/man/man9/mbuf_tags.9 137953 2004-11-21 00:24:21Z rwatson $ | 21.\" $FreeBSD: head/share/man/man9/mbuf_tags.9 140140 2005-01-12 21:48:25Z ru $ |
22.\" | 22.\" |
23.Dd Nov 18, 2004 | 23.Dd November 18, 2004 |
24.Dt MBUF_TAGS 9 25.Os 26.Sh NAME 27.Nm mbuf_tags 28.Nd a framework for generic packet attributes 29.Sh SYNOPSIS 30.In sys/mbuf.h 31.Ft "struct m_tag *" --- 85 unchanged lines hidden (view full) --- 117.Va m_tag_id , m_tag_len 118and 119.Va m_tag_cookie 120fields are set to type, length, 121and 122cookie, respectively. 123.Va m_tag_free 124points to | 24.Dt MBUF_TAGS 9 25.Os 26.Sh NAME 27.Nm mbuf_tags 28.Nd a framework for generic packet attributes 29.Sh SYNOPSIS 30.In sys/mbuf.h 31.Ft "struct m_tag *" --- 85 unchanged lines hidden (view full) --- 117.Va m_tag_id , m_tag_len 118and 119.Va m_tag_cookie 120fields are set to type, length, 121and 122cookie, respectively. 123.Va m_tag_free 124points to |
125.Ft _m_tag_free . | 125.Fn m_tag_free_default . |
126Following this structure are 127.Va m_tag_len 128bytes of space that can be used to store tag-specific information. 129Addressing this data region may be tricky. 130A safe way is embedding 131.Vt "struct m_tag" 132into a private data structure, as follows: 133.Bd -literal -offset indent --- 88 unchanged lines hidden (view full) --- 222Return the first tag associated with 223.Fa mbuf . 224.It Fn m_tag_free tag 225Free 226.Fa tag 227using its 228.Va m_tag_free 229method. | 126Following this structure are 127.Va m_tag_len 128bytes of space that can be used to store tag-specific information. 129Addressing this data region may be tricky. 130A safe way is embedding 131.Vt "struct m_tag" 132into a private data structure, as follows: 133.Bd -literal -offset indent --- 88 unchanged lines hidden (view full) --- 222Return the first tag associated with 223.Fa mbuf . 224.It Fn m_tag_free tag 225Free 226.Fa tag 227using its 228.Va m_tag_free 229method. |
230.Ft _m_tag_free | 230The 231.Fn m_tag_free_default 232function |
231is used by default. 232.It Fn m_tag_init mbuf 233Initialize the tag storage for packet 234.Fa mbuf . 235.It Fn m_tag_locate mbuf cookie type tag 236Search for a tag defined by 237.Fa type 238and --- 47 unchanged lines hidden --- | 233is used by default. 234.It Fn m_tag_init mbuf 235Initialize the tag storage for packet 236.Fa mbuf . 237.It Fn m_tag_locate mbuf cookie type tag 238Search for a tag defined by 239.Fa type 240and --- 47 unchanged lines hidden --- |