5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
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.
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.
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 #ifndef __OSI_UTILS_H__
25 #define __OSI_UTILS_H__
27 /* OSI Global defines, common for all OSI protocols */
29 #define MAX_NSAP_LEN 30
30 #define MAX_SYSTEMID_LEN 15
31 #define MAX_AREA_LEN 30
33 #define RFC1237_NSAP_LEN 20
34 #define RFC1237_FULLAREA_LEN 13
35 #define RFC1237_SYSTEMID_LEN 6
36 #define RFC1237_SELECTOR_LEN 1
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
47 #define NSAP_IDI_ISODCC 0x39
48 #define NSAP_IDI_GOSIP2 0x47
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);
57 #endif /* __OSI_UTILS_H__ */