3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <gerald@wireshark.org>
5 * Copyright 1998 Gerald Combs
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.
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.
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.
22 #ifndef __OSI_UTILS_H__
23 #define __OSI_UTILS_H__
25 /* OSI Global defines, common for all OSI protocols */
27 #define MAX_NSAP_LEN 30
28 #define MAX_SYSTEMID_LEN 15
29 #define MAX_AREA_LEN 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
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
45 #define NSAP_IDI_ISODCC 0x39
46 #define NSAP_IDI_GOSIP2 0x47
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);
56 int get_osi_address_type(void);
57 void register_osi_address_type(void);
59 #endif /* __OSI_UTILS_H__ */
67 * indent-tabs-mode: nil
70 * ex: set shiftwidth=2 tabstop=8 expandtab:
71 * :indentSize=2:tabSize=8:noTabs=true: