Initial import from FreeBSD RELENG_4:
[games.git] / sys / netproto / atm / uni / unisig_mbuf.h
1 /*
2  *
3  * ===================================
4  * HARP  |  Host ATM Research Platform
5  * ===================================
6  *
7  *
8  * This Host ATM Research Platform ("HARP") file (the "Software") is
9  * made available by Network Computing Services, Inc. ("NetworkCS")
10  * "AS IS".  NetworkCS does not provide maintenance, improvements or
11  * support of any kind.
12  *
13  * NETWORKCS MAKES NO WARRANTIES OR REPRESENTATIONS, EXPRESS OR IMPLIED,
14  * INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY
15  * AND FITNESS FOR A PARTICULAR PURPOSE, AS TO ANY ELEMENT OF THE
16  * SOFTWARE OR ANY SUPPORT PROVIDED IN CONNECTION WITH THIS SOFTWARE.
17  * In no event shall NetworkCS be responsible for any damages, including
18  * but not limited to consequential damages, arising from or relating to
19  * any use of the Software or related support.
20  *
21  * Copyright 1994-1998 Network Computing Services, Inc.
22  *
23  * Copies of this Software may be made, however, the above copyright
24  * notice must be reproduced on all copies.
25  *
26  *      @(#) $FreeBSD: src/sys/netatm/uni/unisig_mbuf.h,v 1.2 1999/08/28 00:49:06 peter Exp $
27  *
28  */
29
30 /*
31  * ATM Forum UNI 3.0/3.1 Signalling Manager
32  * ----------------------------------------
33  *
34  * Message buffer formats
35  *
36  */
37
38 #ifndef _UNI_SIG_MBUF_H
39 #define _UNI_SIG_MBUF_H
40
41
42 /*
43  * Structure for message encoding/decoding information.
44  */
45 struct usfmt {
46         KBuffer         *usf_m_addr;    /* Current buffer */
47         KBuffer         *usf_m_base;    /* First buffer in chain */
48         int             usf_loc;        /* Offset in current buffer */
49         int             usf_op;         /* Operation (see below) */
50         struct unisig   *usf_sig;       /* UNI signalling instance */
51 };
52
53 #define USF_ENCODE      1
54 #define USF_DECODE      2
55
56 #define USF_MIN_ALLOC   MHLEN           /* Minimum encoding buffer size */
57
58 #endif  /* _UNI_SIG_MBUF_H */