]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - sys/contrib/ngatm/netnatm/msg/uni_config.h
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / sys / contrib / ngatm / netnatm / msg / uni_config.h
1 /*
2  * Copyright (c) 1996-2003
3  *      Fraunhofer Institute for Open Communication Systems (FhG Fokus).
4  *      All rights reserved.
5  *
6  * Redistribution and use in source and binary forms, with or without
7  * modification, are permitted provided that the following conditions
8  * are met:
9  * 1. Redistributions of source code must retain the above copyright
10  *    notice, this list of conditions and the following disclaimer.
11  * 2. Redistributions in binary form must reproduce the above copyright
12  *    notice, this list of conditions and the following disclaimer in the
13  *    documentation and/or other materials provided with the distribution.
14  *
15  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
16  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
19  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25  * SUCH DAMAGE.
26  *
27  * Author: Hartmut Brandt <harti@freebsd.org>
28  *
29  * $Begemot: libunimsg/netnatm/msg/uni_config.h,v 1.3 2003/09/19 11:58:15 hbb Exp $
30  */
31 #ifndef _uni_uni_config_h_
32 #define _uni_uni_config_h_
33
34 enum {
35         /* maximum number of reported error IEs */
36         UNI_MAX_ERRIE   = 50,
37
38         /* maximum number of Generic Identifier Transport IE's per message */
39         UNI_NUM_IE_GIT  = 3,
40
41         /* maximum number of BLLI's in SETUP */
42         UNI_NUM_IE_BLLI = 3,
43
44         /* maximum number of CALLEDSUB's */
45         UNI_NUM_IE_CALLEDSUB = 2,
46
47         /* maximum number of CALLINGSUB's */
48         UNI_NUM_IE_CALLINGSUB = 2,
49
50         /* maximum number of TNS's */
51         UNI_NUM_IE_TNS = 4,
52
53         /* maximum length of TNS name */
54         UNI_TNS_MAXLEN = 4,
55
56         /* maximum info size in user-to-user signalling IE */
57         UNI_UU_MAXLEN   = 128,
58
59         /* maximum length of address */
60         UNI_ADDR_MAXLEN = 20,
61
62         /* maximum length of subaddress */
63         UNI_SUBADDR_MAXLEN = 20,
64
65         /* maximum number of DTLs */
66         UNI_NUM_IE_DTL = 10,
67         /* maximum number of identifiers in DTL */
68         UNI_DTL_MAXNUM = 20,
69 };
70 #endif