Deleted Added
full compact
mbuf_tags.9 (175253) mbuf_tags.9 (231564)
1.\" $OpenBSD: mbuf_tags.9,v 1.18 2003/12/08 07:07:35 mcbride Exp $
2.\"
3.\" The authors of this manual 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 manual 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 175253 2008-01-12 21:07:03Z maxim $
21.\" $FreeBSD: head/share/man/man9/mbuf_tags.9 231564 2012-02-12 18:29:56Z ed $
22.\"
23.Dd January 12, 2008
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 *"
22.\"
23.Dd January 12, 2008
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 *"
32.Fn m_tag_alloc "u_int32_t cookie" "int type" "int len" "int wait"
32.Fn m_tag_alloc "uint32_t cookie" "int type" "int len" "int wait"
33.Ft "struct m_tag *"
34.Fn m_tag_copy "struct m_tag *t" "int how"
35.Ft int
36.Fn m_tag_copy_chain "struct mbuf *to" "struct mbuf *from" "int how"
37.Ft void
38.Fn m_tag_delete "struct mbuf *m" "struct m_tag *t"
39.Ft void
40.Fn m_tag_delete_chain "struct mbuf *m" "struct m_tag *t"

--- 5 unchanged lines hidden (view full) ---

46.Fn m_tag_first "struct mbuf *m"
47.Ft void
48.Fn m_tag_free "struct m_tag *t"
49.Ft "struct m_tag *"
50.Fn m_tag_get "int type" "int len" "int wait"
51.Ft void
52.Fn m_tag_init "struct mbuf *m"
53.Ft struct m_tag *
33.Ft "struct m_tag *"
34.Fn m_tag_copy "struct m_tag *t" "int how"
35.Ft int
36.Fn m_tag_copy_chain "struct mbuf *to" "struct mbuf *from" "int how"
37.Ft void
38.Fn m_tag_delete "struct mbuf *m" "struct m_tag *t"
39.Ft void
40.Fn m_tag_delete_chain "struct mbuf *m" "struct m_tag *t"

--- 5 unchanged lines hidden (view full) ---

46.Fn m_tag_first "struct mbuf *m"
47.Ft void
48.Fn m_tag_free "struct m_tag *t"
49.Ft "struct m_tag *"
50.Fn m_tag_get "int type" "int len" "int wait"
51.Ft void
52.Fn m_tag_init "struct mbuf *m"
53.Ft struct m_tag *
54.Fn m_tag_locate "struct mbuf *m" "u_int32_t cookie" "int type" "struct m_tag *t"
54.Fn m_tag_locate "struct mbuf *m" "uint32_t cookie" "int type" "struct m_tag *t"
55.Ft "struct m_tag *"
56.Fn m_tag_next "struct mbuf *m" "struct m_tag *t"
57.Ft void
58.Fn m_tag_prepend "struct mbuf *m" "struct m_tag *t"
59.Ft void
60.Fn m_tag_unlink "struct mbuf *m" "struct m_tag *t"
61.Sh DESCRIPTION
62Mbuf tags allow additional meta-data to be associated with in-flight packets

--- 32 unchanged lines hidden (view full) ---

95.Pp
96The first
97.Fn sizeof "struct m_tag"
98bytes of a tag contain a
99.Vt "struct m_tag" :
100.Bd -literal
101struct m_tag {
102 SLIST_ENTRY(m_tag) m_tag_link; /* List of packet tags */
55.Ft "struct m_tag *"
56.Fn m_tag_next "struct mbuf *m" "struct m_tag *t"
57.Ft void
58.Fn m_tag_prepend "struct mbuf *m" "struct m_tag *t"
59.Ft void
60.Fn m_tag_unlink "struct mbuf *m" "struct m_tag *t"
61.Sh DESCRIPTION
62Mbuf tags allow additional meta-data to be associated with in-flight packets

--- 32 unchanged lines hidden (view full) ---

95.Pp
96The first
97.Fn sizeof "struct m_tag"
98bytes of a tag contain a
99.Vt "struct m_tag" :
100.Bd -literal
101struct m_tag {
102 SLIST_ENTRY(m_tag) m_tag_link; /* List of packet tags */
103 u_int16_t m_tag_id; /* Tag ID */
104 u_int16_t m_tag_len; /* Length of data */
105 u_int32_t m_tag_cookie; /* ABI/Module ID */
103 uint16_t m_tag_id; /* Tag ID */
104 uint16_t m_tag_len; /* Length of data */
105 uint32_t m_tag_cookie; /* ABI/Module ID */
106 void (*m_tag_free)(struct m_tag *);
107};
108.Ed
109.Pp
110The
111.Va m_tag_link
112field is used to link tags together (see
113.Xr queue 3

--- 173 unchanged lines hidden ---
106 void (*m_tag_free)(struct m_tag *);
107};
108.Ed
109.Pp
110The
111.Va m_tag_link
112field is used to link tags together (see
113.Xr queue 3

--- 173 unchanged lines hidden ---