| Wireshark 4.7.0 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
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#include <wsutil/value_string.h>
15
16#define PDU_TYPE_ESIS_ESH 100
17#define PDU_TYPE_ESIS_ISH 101
18#define PDU_TYPE_ESIS_RD 102
19
20#define PDU_TYPE_ISIS_L1_HELLO 201
21#define PDU_TYPE_ISIS_L2_HELLO 202
22#define PDU_TYPE_ISIS_PTP_HELLO 203
23#define PDU_TYPE_ISIS_L1_CSNP 204
24#define PDU_TYPE_ISIS_L1_PSNP 205
25#define PDU_TYPE_ISIS_L2_CSNP 206
26#define PDU_TYPE_ISIS_L2_PSNP 207
27
28
29
30
31
32#define PROTO_STRING_ISIS "ISO 10589 ISIS InTRA Domain Routeing Information Exchange Protocol"
33#define PROTO_STRING_IDRP "ISO 10747 IDRP InTER Domain Routeing Information Exchange Protocol"
34#define PROTO_STRING_ESIS "ISO 9542 ESIS Routeing Information Exchange Protocol"
35#define PROTO_STRING_CLNP "ISO 8473/X.233 CLNP ConnectionLess Network Protocol"
36#define PROTO_STRING_COTP "ISO 8073/X.224 COTP Connection-Oriented Transport Protocol"
37#define PROTO_STRING_CLTP "ISO 8602/X.234 CLTP ConnectionLess Transport Protocol"
38#define PROTO_STRING_LSP "ISO 10589 ISIS Link State Protocol Data Unit"
39#define PROTO_STRING_CSNP "ISO 10589 ISIS Complete Sequence Numbers Protocol Data Unit"
40#define PROTO_STRING_PSNP "ISO 10589 ISIS Partial Sequence Numbers Protocol Data Unit"
41
42#define OSI_PDU_TYPE_MASK 0x1f
43#define BIS_PDU_TYPE MASK 0xff
44
45/* X.263 / ISO/IEC TR 9577 NLPID values. */
46
47#define NLPID_NULL 0x00
48#define NLPID_IPI_T_70 0x01 /* T.70, when an IPI */
49#define NLPID_SPI_X_29 0x01 /* X.29, when an SPI */
50#define NLPID_X_633 0x03 /* X.633 */
51#define NLPID_DMS 0x03 /* Maintenace messages: AT&T TR41459, Nortel NIS A211-1, Telcordia SR-4994, ... */
52#define NLPID_Q_931 0x08 /* Q.931, Q.932, X.36, ISO 11572, ISO 11582 */
53#define NLPID_Q_933 0x08 /* Q.933, on Frame Relay */
54#define NLPID_Q_2931 0x09 /* Q.2931 */
55#define NLPID_Q_2119 0x0c /* Q.2119 */
56#define NLPID_SNAP 0x80
57#define NLPID_ISO8473_CLNP 0x81 /* X.233 */
58#define NLPID_ISO9542_ESIS 0x82
59#define NLPID_ISO10589_ISIS 0x83
60#define NLPID_ISO10747_IDRP 0x85
61#define NLPID_ISO9542X25_ESIS 0x8a
62#define NLPID_ISO10030 0x8c
63#define NLPID_ISO11577 0x8d /* X.273 */
64#define NLPID_IP6 0x8e
65#define NLPID_AVAYA_IPVPN 0x8f /* Avaya/Extreme Fabric (SPBM) IPVPN */
66#define NLPID_COMPRESSED 0xb0 /* "Data compression protocol" */
67#define NLPID_TRILL 0xc0
68#define NLPID_SNDCF 0xc1 /* "SubNetwork Dependent Convergence Function */
69#define NLPID_IEEE_8021AQ 0xc1 /* IEEE 802.1aq (draft-ietf-isis-ieee-aq-05.txt); defined in context of ISIS "supported protocols" TLV */
70#define NLPID_IP 0xcc
71#define NLPID_PPP 0xcf
72
73extern const value_string nlpid_vals[];
74
75/*
76 * 0x09 is, in Frame Relay, LMI, Q.2931.
77 */
78#define NLPID_LMI 0x09 /* LMI */
79
80/*
81 * published API functions
82 */
83
84/* Exposed to be used by packet-osi-options.c */
85extern int proto_osi;
86
87extern bool osi_calc_checksum( tvbuff_t *tvb, int offset, unsigned len, uint32_t* c0, uint32_t* c1);
88extern bool osi_check_and_get_checksum( tvbuff_t *tvb, int offset, unsigned len, int offset_check, uint16_t* result);
89extern uint32_t check_atn_ec_32(tvbuff_t *tvb, unsigned tpdu_len, unsigned offset_ec_32_val, unsigned offset_iso8073_val, unsigned clnp_dst_len, const uint8_t *clnp_dst, unsigned clnp_src_len, const uint8_t *clnp_src);
90extern uint16_t check_atn_ec_16(tvbuff_t *tvb, unsigned tpdu_len, unsigned offset_ec_16_val, unsigned offset_iso8073_val, unsigned clnp_dst_len, const uint8_t *clnp_dst, unsigned clnp_src_len, const uint8_t *clnp_src);
91
92#endif /* _PACKET_OSI_H */
osi-utils.h
_value_string
Mapping between a 32-bit integer value and its string representation.
Definition value_string.h:33
tvbuff
Definition tvbuff-int.h:35
value_string.h