3 * $Id: packet-osi.h,v 1.5 2000/11/18 10:38:25 guy Exp $
5 * Ethereal - Network traffic analyzer
6 * By Gerald Combs <gerald@zing.org>
7 * Copyright 1998 Gerald Combs
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License
12 * as published by the Free Software Foundation; either version 2
13 * of the License, or (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
28 /* OSI Global defines, common for all OSI protocols */
30 #define MAX_NSAP_LEN 30
31 #define MAX_SYSTEMID_LEN 15
32 #define MAX_AREA_LEN 30
34 #define RFC1237_NSAP_LEN 20
35 #define RFC1237_FULLAREA_LEN 13
36 #define RFC1237_SYSTEMID_LEN 6
37 #define RFC1237_SELECTOR_LEN 1
39 #define RFC1237_IDI_LEN 2
40 #define RFC1237_AFI_LEN 1
41 #define RFC1237_DFI_LEN 1
42 #define RFC1237_ORG_LEN 3
43 #define RFC1237_AA_LEN 3
44 #define RFC1237_RSVD_LEN 2
45 #define RFC1237_RD_LEN 2
46 #define RFC1237_AREA_LEN 3
49 #define NSAP_IDI_ISODCC 0x39
50 #define NSAP_IDI_GOSIP2 0x47
52 #define PDU_TYPE_ESIS_ESH 100
53 #define PDU_TYPE_ESIS_ISH 101
54 #define PDU_TYPE_ESIS_RD 102
56 #define PDU_TYPE_ISIS_L1_HELLO 201
57 #define PDU_TYPE_ISIS_L2_HELLO 202
58 #define PDU_TYPE_ISIS_PTP_HELLO 203
59 #define PDU_TYPE_ISIS_L1_CSNP 204
60 #define PDU_TYPE_ISIS_L1_PSNP 205
61 #define PDU_TYPE_ISIS_L2_CSNP 206
62 #define PDU_TYPE_ISIS_L2_PSNP 207
68 #define PROTO_STRING_ISIS "ISO 10589 ISIS InTRA Domain Routeing Information Exchange Protocol"
69 #define PROTO_STRING_IDRP "ISO 10747 IDRP InTER Domain Routeing Information Exchange Protocol"
70 #define PROTO_STRING_ESIS "ISO 9542 ESIS Routeing Information Exchange Protocol"
71 #define PROTO_STRING_CLNP "ISO 8473 CLNP ConnectionLess Network Protocol"
72 #define PROTO_STRING_COTP "ISO 8073 COTP Connection-Oriented Transport Protocol"
73 #define PROTO_STRING_CLTP "ISO 8602 CLTP ConnectionLess Transport Protocol"
74 #define PROTO_STRING_LSP "ISO 10589 ISIS Link State Protocol Data Unit"
75 #define PROTO_STRING_CSNP "ISO 10589 ISIS Complete Sequence Numbers Protocol Data Unit"
76 #define PROTO_STRING_PSNP "ISO 10589 ISIS Partial Sequence Numbers Protocol Data Unit"
78 #define OSI_PDU_TYPE_MASK 0x1f
79 #define BIS_PDU_TYPE MASK 0xff
102 * published API functions
105 extern void dissect_osi( tvbuff_t *, packet_info *, proto_tree *);
106 extern gchar *print_nsap_net ( const u_char *, int );
107 extern gchar *print_area ( const u_char *, int );
108 extern gchar *print_system_id( const u_char *, int );
109 extern gchar *calc_checksum ( tvbuff_t *, int, u_int, u_int );
111 #endif /* _PACKET_OSI_H */