Wireshark  4.3.0
The Wireshark network protocol analyzer
packet-osi.h
1 /* packet-osi.h
2  *
3  * Wireshark - Network traffic analyzer
4  * By Gerald Combs <gerald@wireshark.org>
5  * Copyright 1998 Gerald Combs
6  *
7  * SPDX-License-Identifier: GPL-2.0-or-later
8 */
9 
10 #ifndef _PACKET_OSI_H
11 #define _PACKET_OSI_H
12 
13 #include <epan/osi-utils.h>
14 
15 #define PDU_TYPE_ESIS_ESH 100
16 #define PDU_TYPE_ESIS_ISH 101
17 #define PDU_TYPE_ESIS_RD 102
18 
19 #define PDU_TYPE_ISIS_L1_HELLO 201
20 #define PDU_TYPE_ISIS_L2_HELLO 202
21 #define PDU_TYPE_ISIS_PTP_HELLO 203
22 #define PDU_TYPE_ISIS_L1_CSNP 204
23 #define PDU_TYPE_ISIS_L1_PSNP 205
24 #define PDU_TYPE_ISIS_L2_CSNP 206
25 #define PDU_TYPE_ISIS_L2_PSNP 207
26 
27 
28 
29 
30 
31 #define PROTO_STRING_ISIS "ISO 10589 ISIS InTRA Domain Routeing Information Exchange Protocol"
32 #define PROTO_STRING_IDRP "ISO 10747 IDRP InTER Domain Routeing Information Exchange Protocol"
33 #define PROTO_STRING_ESIS "ISO 9542 ESIS Routeing Information Exchange Protocol"
34 #define PROTO_STRING_CLNP "ISO 8473/X.233 CLNP ConnectionLess Network Protocol"
35 #define PROTO_STRING_COTP "ISO 8073/X.224 COTP Connection-Oriented Transport Protocol"
36 #define PROTO_STRING_CLTP "ISO 8602/X.234 CLTP ConnectionLess Transport Protocol"
37 #define PROTO_STRING_LSP "ISO 10589 ISIS Link State Protocol Data Unit"
38 #define PROTO_STRING_CSNP "ISO 10589 ISIS Complete Sequence Numbers Protocol Data Unit"
39 #define PROTO_STRING_PSNP "ISO 10589 ISIS Partial Sequence Numbers Protocol Data Unit"
40 
41 #define OSI_PDU_TYPE_MASK 0x1f
42 #define BIS_PDU_TYPE MASK 0xff
43 
44 /*
45  * published API functions
46  */
47 
48 /* Exposed to be used by packet-osi-options.c */
49 extern int proto_osi;
50 
51 extern gboolean osi_calc_checksum( tvbuff_t *tvb, int offset, guint len, guint32* c0, guint32* c1);
52 extern gboolean osi_check_and_get_checksum( tvbuff_t *tvb, int offset, guint len, int offset_check, guint16* result);
53 extern guint32 check_atn_ec_32(tvbuff_t *tvb, guint tpdu_len, guint offset_ec_32_val, guint offset_iso8073_val, guint clnp_dst_len, const guint8 *clnp_dst, guint clnp_src_len, const guint8 *clnp_src);
54 extern guint16 check_atn_ec_16(tvbuff_t *tvb, guint tpdu_len, guint offset_ec_16_val, guint offset_iso8073_val, guint clnp_dst_len, const guint8 *clnp_dst, guint clnp_src_len, const guint8 *clnp_src);
55 
56 #endif /* _PACKET_OSI_H */
Definition: tvbuff-int.h:35