Add Q.932 to extra dist.
[obnox/wireshark/wip.git] / epan / osi-utils.h
1 /* osi-utils.h
2  *
3  * $Id$
4  *
5  * Wireshark - Network traffic analyzer
6  * By Gerald Combs <gerald@wireshark.org>
7  * Copyright 1998 Gerald Combs
8  *
9  * This program is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU General Public License
11  * as published by the Free Software Foundation; either version 2
12  * of the License, or (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
22  */
23
24 #ifndef __OSI_UTILS_H__
25 #define __OSI_UTILS_H__
26
27 /* OSI Global defines, common for all OSI protocols */
28
29 #define MAX_NSAP_LEN          30
30 #define MAX_SYSTEMID_LEN      15
31 #define MAX_AREA_LEN          30
32
33 #define RFC1237_NSAP_LEN      20
34 #define RFC1237_FULLAREA_LEN  13
35 #define RFC1237_SYSTEMID_LEN   6
36 #define RFC1237_SELECTOR_LEN   1
37
38 #define RFC1237_IDI_LEN        2
39 #define RFC1237_AFI_LEN        1
40 #define RFC1237_DFI_LEN        1
41 #define RFC1237_ORG_LEN        3
42 #define RFC1237_AA_LEN         3
43 #define RFC1237_RSVD_LEN       2
44 #define RFC1237_RD_LEN         2
45 #define RFC1237_AREA_LEN       3
46
47 #define NSAP_IDI_ISODCC       0x39
48 #define NSAP_IDI_GOSIP2       0x47
49
50 gchar*     print_nsap_net ( const guint8 *, int );
51 void       print_nsap_net_buf( const guint8 *, int, gchar *, int);
52 gchar*     print_area     ( const guint8 *, int );
53 void       print_area_buf ( const guint8 *, int, gchar *, int);
54 gchar*     print_system_id( const guint8 *, int );
55 void       print_system_id_buf( const guint8 *, int, gchar *, int);
56
57 #endif /* __OSI_UTILS_H__ */