Wireshark 2.9.0-477-g68ec514b The Wireshark network protocol analyzer

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

packet-sccp.h
1 /* packet-sccp.h
2 * Definitions for Signalling Connection Control Part (SCCP) dissection
3 *
4 * Wireshark - Network traffic analyzer
5 * By Gerald Combs <gerald@wireshark.org>
6 * Copyright 1998 Gerald Combs
7 *
8 * SPDX-License-Identifier: GPL-2.0-or-later
9 */
10
11 #ifndef __PACKET_SCCP_H
12 #define __PACKET_SCCP_H
13
14 #include "ws_symbol_export.h"
15
16 #define SCCP_MSG_TYPE_CR 0x01
17 #define SCCP_MSG_TYPE_CC 0x02
18 #define SCCP_MSG_TYPE_CREF 0x03
19 #define SCCP_MSG_TYPE_RLSD 0x04
20 #define SCCP_MSG_TYPE_RLC 0x05
21 #define SCCP_MSG_TYPE_DT1 0x06
22 #define SCCP_MSG_TYPE_DT2 0x07
23 #define SCCP_MSG_TYPE_AK 0x08
24 #define SCCP_MSG_TYPE_UDT 0x09
25 #define SCCP_MSG_TYPE_UDTS 0x0a
26 #define SCCP_MSG_TYPE_ED 0x0b
27 #define SCCP_MSG_TYPE_EA 0x0c
28 #define SCCP_MSG_TYPE_RSR 0x0d
29 #define SCCP_MSG_TYPE_RSC 0x0e
30 #define SCCP_MSG_TYPE_ERR 0x0f
31 #define SCCP_MSG_TYPE_IT 0x10
32 #define SCCP_MSG_TYPE_XUDT 0x11
33 #define SCCP_MSG_TYPE_XUDTS 0x12
34 #define SCCP_MSG_TYPE_LUDT 0x13
35 #define SCCP_MSG_TYPE_LUDTS 0x14
36
37 WS_DLL_PUBLIC const value_string sccp_message_type_acro_values[];
38 WS_DLL_PUBLIC const value_string sccp_release_cause_values[];
39 WS_DLL_PUBLIC const value_string sccp_return_cause_values[];
40 WS_DLL_PUBLIC const value_string sccp_reset_cause_values[];
41 WS_DLL_PUBLIC const value_string sccp_error_cause_values[];
42 WS_DLL_PUBLIC const value_string sccp_refusal_cause_values[];
43
44 /* from packet-sua.c */
45 WS_DLL_PUBLIC const value_string sua_co_class_type_acro_values[];
46
47 typedef enum _sccp_payload_t {
48 SCCP_PLOAD_NONE,
49 SCCP_PLOAD_BSSAP,
50 SCCP_PLOAD_RANAP,
51 SCCP_PLOAD_NUM_PLOADS
52 } sccp_payload_t;
53
54 typedef struct _sccp_msg_info_t {
55 guint framenum;
56 guint offset;
57 guint type;
58
59 union {
60 struct {
61 gchar* label;
62 gchar* comment;
63 struct _sccp_assoc_info_t* assoc;
64 struct _sccp_msg_info_t* next;
65 } co;
66 struct {
67 guint8* calling_gt;
68 guint calling_ssn;
69 guint8* called_gt;
70 guint called_ssn;
71 } ud;
72 } data;
73 } sccp_msg_info_t;
74
75 typedef struct _sccp_assoc_info_t {
76 guint32 id;
77 guint32 calling_dpc;
78 guint32 called_dpc;
79 guint8 calling_ssn;
80 guint8 called_ssn;
81 gboolean has_fw_key;
82 gboolean has_bw_key;
83 sccp_msg_info_t* msgs;
84 sccp_msg_info_t* curr_msg;
85
86 sccp_payload_t payload;
87 gchar* calling_party;
88 gchar* called_party;
89 gchar* extra_info;
90 guint32 app_info; /* used only by dissectors of protocols above SCCP */
91
92 } sccp_assoc_info_t;
93
94 typedef struct _sccp_decode_context_t {
95 guint8 message_type;
96 guint dlr;
97 guint slr;
98 sccp_assoc_info_t* assoc;
99 sccp_msg_info_t* sccp_msg;
100
101 } sccp_decode_context_t;
102
103 extern sccp_assoc_info_t* get_sccp_assoc(packet_info* pinfo, guint offset, sccp_decode_context_t* value);
104 extern gboolean looks_like_valid_sccp(guint32 frame_num, tvbuff_t *tvb, guint8 my_mtp3_standard);
105
106 #define INVALID_LR 0xffffff /* a reserved value */
107
108 #define GT_SIGNAL_LENGTH 1
109 #define GT_ODD_SIGNAL_MASK 0x0f
110 #define GT_EVEN_SIGNAL_MASK 0xf0
111 #define GT_EVEN_SIGNAL_SHIFT 4
112 #define GT_MAX_SIGNALS (32*7) /* it's a bit big, but it allows for adding a lot of "(spare)" and "Unknown" values (7 chars) if there are errors - e.g. ANSI vs ITU wrongly selected */
113 WS_DLL_PUBLIC const value_string sccp_address_signal_values[];
114
115 #endif
_packet_info
Definition: packet_info.h:44
tvbuff
Definition: tvbuff-int.h:35
_sccp_msg_info_t
Definition: packet-sccp.h:54
_sccp_assoc_info_t
Definition: packet-sccp.h:75
_value_string
Definition: value_string.h:24
_sccp_decode_context_t
Definition: packet-sccp.h:94