summaryrefslogtreecommitdiff
path: root/share/man
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2003-12-12 10:25:01 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2003-12-12 10:25:01 +0000
commitf0b69c1fbaaba159f3eca08de19dda032ddf734d (patch)
treeaecc2ca99a0188263ece627905bd31eac6f737d2 /share/man
parentecc85b9ac6a869962d2ceb3828a7657c8b829a76 (diff)
sync with <sys/mbuf.h>, as pointed out by Dragos Ruiu;
ok deraadt@ itojun@
Diffstat (limited to 'share/man')
-rw-r--r--share/man/man9/mbuf.928
1 files changed, 16 insertions, 12 deletions
diff --git a/share/man/man9/mbuf.9 b/share/man/man9/mbuf.9
index 2283e2980fe..9b920ba3b10 100644
--- a/share/man/man9/mbuf.9
+++ b/share/man/man9/mbuf.9
@@ -1,4 +1,4 @@
-.\" $OpenBSD: mbuf.9,v 1.11 2003/04/17 05:08:39 jmc Exp $
+.\" $OpenBSD: mbuf.9,v 1.12 2003/12/12 10:25:00 jmc Exp $
.\"
.\" Copyright (c) 2001 Jean-Jacques Bernard-Gundol <jjbg@openbsd.org>
.\" All rights reserved.
@@ -114,19 +114,20 @@ struct m_hdr {
struct pkthdr {
struct ifnet *rcvif;
+ SLIST_HEAD(packet_tags, m_tag) tags;
int len;
- void *tdbi;
+ int csum;
};
struct m_ext {
caddr_t ext_buf;
- void (*ext_free)
-(struct mbuf *);
+ void (*ext_free)(caddr_t, u_int, void *);
+ void *ext_arg;
u_int ext_size;
- void (*ext_ref)
-(struct mbuf *);
- void *ext_handle;
+ int ext_type;
+ struct mbuf *ext_nextref;
+ struct mbuf *ext_prevref;
};
struct mbuf {
@@ -143,11 +144,6 @@ struct mbuf {
} M_dat;
};
-union mcluster {
- union mcluster *mcl_next;
- char mcl_buf[MCLBYTES];
-};
-
#define m_next m_hdr.mh_next
#define m_len m_hdr.mh_len
#define m_data m_hdr.mh_data
@@ -187,6 +183,8 @@ A pointer to the next mbuf in the mbuf chain.
A pointer to the next mbuf chain (i.e., packet) in the queue.
.It Fa mh_data
Indicates the address of the beginning of data in the mbuf.
+.It Fa mh_len
+Indicates the amount of data in the mbuf.
.It Fa mh_type
Indicates the type of data contained in the mbuf (see below).
.It Fa mh_flags
@@ -196,6 +194,7 @@ Flags (see below).
The
.Fa mh_type
variable can take the following values:
+.Pp
.Bl -tag -compact -offset indent -width XXXXXXXXXXXXXXXXXX
.It Dv MT_FREE
the mbuf should be on the free list.
@@ -218,6 +217,7 @@ the data consists of out-of-banddata.
The
.Fa mh_flags
variable can take the following values:
+.Pp
.Bl -tag -compact -offset indent -width XXXXXXXXXXXXXXXXXX
.It Dv M_EXT
mbuf has associated external storage.
@@ -239,6 +239,10 @@ packet was encrypted (ESP-transport).
packet was authenticated (AH).
.It Dv M_COMP
packet was compressed (IPCOMP).
+.It Dv M_AUTH_AH
+header was authenticated (AH).
+.It Dv M_TUNNEL
+IP-in-IP added by tunnel mode IPsec.
.It Dv M_IPV4_CSUM_OUT
IPv4 checksum needed.
.It Dv M_TCPV4_CSUM_OUT