Packetbb: Fix Msg size
[metze/wireshark/wip.git] / epan / osi-utils.h
1 /* osi-utils.h
2  *
3  * Wireshark - Network traffic analyzer
4  * By Gerald Combs <gerald@wireshark.org>
5  * Copyright 1998 Gerald Combs
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 2
10  * of the License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20  */
21
22 #ifndef __OSI_UTILS_H__
23 #define __OSI_UTILS_H__
24
25 /* OSI Global defines, common for all OSI protocols */
26
27 #define MAX_NSAP_LEN          30
28 #define MAX_SYSTEMID_LEN      15
29 #define MAX_AREA_LEN          30
30
31 #define RFC1237_NSAP_LEN      20
32 #define RFC1237_FULLAREA_LEN  13
33 #define RFC1237_SYSTEMID_LEN   6
34 #define RFC1237_SELECTOR_LEN   1
35
36 #define RFC1237_IDI_LEN        2
37 #define RFC1237_AFI_LEN        1
38 #define RFC1237_DFI_LEN        1
39 #define RFC1237_ORG_LEN        3
40 #define RFC1237_AA_LEN         3
41 #define RFC1237_RSVD_LEN       2
42 #define RFC1237_RD_LEN         2
43 #define RFC1237_AREA_LEN       3
44
45 #define NSAP_IDI_ISODCC       0x39
46 #define NSAP_IDI_GOSIP2       0x47
47
48 gchar*     print_nsap_net ( tvbuff_t *, const gint, int );
49 void       print_nsap_net_buf( const guint8 *, int, gchar *, int);
50 gchar*     print_area     ( tvbuff_t *, const gint, int );
51 void       print_area_buf ( const guint8 *, int, gchar *, int);
52 gchar*     print_system_id(wmem_allocator_t *, const guint8 *, int );
53 gchar*     tvb_print_system_id( tvbuff_t *, const gint, int );
54 void       print_system_id_buf( const guint8 *, int, gchar *, int);
55
56 int        get_osi_address_type(void);
57 void       register_osi_address_type(void);
58
59 #endif /* __OSI_UTILS_H__ */
60
61 /*
62  * Editor modelines
63  *
64  * Local Variables:
65  * c-basic-offset: 2
66  * tab-width: 8
67  * indent-tabs-mode: nil
68  * End:
69  *
70  * ex: set shiftwidth=2 tabstop=8 expandtab:
71  * :indentSize=2:tabSize=8:noTabs=true:
72  */