2 * Routines for Cisco Session Management Protocol dissection
3 * Copyright 2004, Duncan Sargeant <dunc-ethereal@rcpt.to>
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
9 * SPDX-License-Identifier: GPL-2.0-or-later
13 * This is basically a glue dissector for the Cisco SM protocol. It sits
14 * between the RUDP and MTP3 layers between SLTs and MGCs.
16 * A link to an overview of the technology :
17 * http://www.cisco.com/en/US/products/sw/netmgtsw/ps4883/products_installation_and_configuration_guide_chapter09186a008010950a.html
18 * Link showing debugs of the protocol:
19 * http://www.cisco.com/univercd/cc/td/doc/product/access/sc/rel7/omts/omts_apb.htm#30052
20 * Scroll down to Backhaul Debug Event/Cause/Reason Codes:
21 * http://www.cisco.com/en/US/docs/ios-xml/ios/debug/command/s1/db-s2.html#GUID-83B6671D-B86F-4B41-819C-85D14F4AACAE
22 * Free/Opensource implementation:
23 * http://yate.null.ro/websvn/filedetails.php?repname=yate&path=%2Ftrunk%2Fmodules%2Fserver%2Fciscosm.cpp
28 #include <epan/packet.h>
30 #define MESSAGE_TYPE_START 0
31 #define MESSAGE_TYPE_STOP 1
32 #define MESSAGE_TYPE_ACTIVE 2
33 #define MESSAGE_TYPE_STANDBY 3
34 #define MESSAGE_TYPE_Q_HOLD_INVOKE 4
35 #define MESSAGE_TYPE_Q_HOLD_RESPONSE 5
36 #define MESSAGE_TYPE_Q_RESUME_INVOKE 6
37 #define MESSAGE_TYPE_Q_RESUME_RESPONSE 7
38 #define MESSAGE_TYPE_Q_RESET_INVOKE 8
39 #define MESSAGE_TYPE_Q_RESET_RESPONSE 9
40 #define MESSAGE_TYPE_PDU 0x8000
42 void proto_register_sm(void);
43 void proto_reg_handoff_sm(void);
45 static const value_string sm_message_type_value
[] = {
46 { MESSAGE_TYPE_START
, "Start Message" },
47 { MESSAGE_TYPE_STOP
, "Stop Message" },
48 { MESSAGE_TYPE_ACTIVE
, "Active Message" },
49 { MESSAGE_TYPE_STANDBY
, "Standby Message" },
50 { MESSAGE_TYPE_Q_HOLD_INVOKE
, "Q_HOLD Invoke Message" },
51 { MESSAGE_TYPE_Q_HOLD_RESPONSE
, "Q_HOLD Response Message" },
52 { MESSAGE_TYPE_Q_RESUME_INVOKE
, "Q_RESUME Invoke Message" },
53 { MESSAGE_TYPE_Q_RESUME_RESPONSE
, "Q_RESUME Response Message" },
54 { MESSAGE_TYPE_Q_RESET_INVOKE
, "Q_RESET Invoke Message" },
55 { MESSAGE_TYPE_Q_RESET_RESPONSE
, "Q_RESET Response Message" },
56 { MESSAGE_TYPE_PDU
, "PDU Message" },
60 static const value_string sm_message_type_value_info
[] = {
61 { MESSAGE_TYPE_START
, "Start" },
62 { MESSAGE_TYPE_STOP
, "Stop" },
63 { MESSAGE_TYPE_ACTIVE
, "Active" },
64 { MESSAGE_TYPE_STANDBY
, "Standby" },
65 { MESSAGE_TYPE_Q_HOLD_INVOKE
, "Q_HOLD Invoke" },
66 { MESSAGE_TYPE_Q_HOLD_RESPONSE
, "Q_HOLD Response" },
67 { MESSAGE_TYPE_Q_RESUME_INVOKE
, "Q_RESUME Invoke" },
68 { MESSAGE_TYPE_Q_RESUME_RESPONSE
, "Q_RESUME Response" },
69 { MESSAGE_TYPE_Q_RESET_INVOKE
, "Q_RESET Invoke" },
70 { MESSAGE_TYPE_Q_RESET_RESPONSE
, "Q_RESET Response" },
71 { MESSAGE_TYPE_PDU
, "PDU" },
75 static const value_string sm_alignment_type
[] = {
76 { 0x00, "Unknown (probably linkset was already up)"},
77 { 0x03, "Emergency alignment"},
78 { 0x04, "Normal alignment"},
79 { 0x05, "Power On MTP2"},
80 { 0x06, "Start MTP2"},
84 static const value_string sm_backhaul_reason_code
[] = {
85 { 0x00, "Layer management request"},
86 { 0x01, "SUERM (Signal Unit Error Monitor) failure"},
87 { 0x02, "Excessively long alignment period"},
88 { 0x03, "T7 timer expired"},
89 { 0x04, "Physical interface failure"},
90 { 0x05, "Two or three invalid BSNs"},
91 { 0x06, "Two or three invalid FIBs"},
92 { 0x07, "LSSU (Link Status Signal Unit) condition"},
93 { 0x13, "SIOs (Service Information Octets) received "
94 "in Link State Control (LSC)"},
95 { 0x14, "Timer T2 expired waiting for SIO"},
96 { 0x15, "Timer T3 expired waiting for SIE/SIN "},
97 { 0x16, "SIO received in initial alignment control (IAC)"},
98 { 0x17, "Proving period failure"},
99 { 0x18, "Timer T1 expired waiting for FISU (Fill-In Signal Unit)"},
100 { 0x19, "SIN received in the in-service state"},
102 { 0x25, "No resources"},
106 static const value_string sm_backhaul_event_code
[] = {
107 { 0x00, "Local processor outage"},
108 { 0x01, "Local processor outage recovered"},
109 { 0x02, "Entered a congested state"},
110 { 0x03, "Exited a congested state"},
111 { 0x04, "Physical layer up"},
112 { 0x05, "Physical layer down"},
113 { 0x06, "Protocol error"},
114 { 0x07, "Link is aligned"},
115 { 0x08, "Link alignment lost"},
116 { 0x09, "Retransmit buffer full"},
117 { 0x0a, "Retransmit buffer no longer full"},
118 { 0x0b, "Negative acknowledgment"},
119 { 0x0c, "Remote entered congestion"},
120 { 0x0d, "Remote exited congestion"},
121 { 0x0e, "Remote entered processor outage"},
122 { 0x0f, "Remote exited processor outage"},
126 static const value_string sm_backhaul_cause_code
[] = {
127 { 0x00, "Unknown (default)"},
128 { 0x01, "Management initiated"},
129 { 0x02, "Abnormal BSN (backward sequence number)"},
130 { 0x03, "Abnormal FIB (Forward Indicator Bit)"},
131 { 0x04, "Congestion discard"},
135 static const value_string sm_linkdown_cause_code
[] = {
136 { 0x00, "Unknown (default)"},
137 { 0x01, "Management initiated"},
138 { 0x03, "Congestion ended"},
142 static const value_string sm_retrieval_type
[] = {
143 { 0x01, "Request for BSN"},
144 { 0x02, "Request for MSUs"},
145 { 0x03, "Request to drop MSUs"},
149 static const value_string sm_lsc_state_type
[] = {
151 { 0x01, "Clear LPO"},
152 { 0x02, "Set Emergency"},
153 { 0x03, "Clear Emergency"},
154 { 0x04, "Clear Buffers"},
155 { 0x05, "Clear Transmit Buffer"},
156 { 0x06, "Clear ReTransmission Buffer"},
157 { 0x07, "Clear Receive Buffer"},
165 static const value_string sm_stat_request_type
[] = {
167 { 0x01, "Send & Reset"},
172 #define PDU_CONNECT_REQUEST 0x06
173 #define PDU_CONNECT_CONFIRM 0x07
174 #define PDU_DISCONNECT_CONFIRM 0x0b
175 #define PDU_DISCONNECT_INDICATION 0x0c
176 #define PDU_MTP3_TO_SLT 0x10
177 #define PDU_MTP3_FROM_SLT 0x11
178 #define PDU_RETRIEVAL_REQUEST 0x12
179 #define PDU_RETRIEVAL_CONFIRM 0x13
180 #define PDU_LSC_REQUEST 0x20
181 #define PDU_LSC_CONFIRM 0x21
182 #define PDU_LSC_INDICATION 0x22
183 #define PDU_STAT_REQUEST 0x44
185 static const value_string sm_pdu_type_value
[] = {
186 { PDU_CONNECT_REQUEST
, "Connect Request"},
187 { PDU_CONNECT_CONFIRM
, "Connect Confirm"},
188 { 0x0a, "Disconnect Request"},
189 { PDU_DISCONNECT_CONFIRM
, "Disconnect Confirm"},
190 { PDU_DISCONNECT_INDICATION
, "Disconnect Indication Message"},
191 { PDU_MTP3_TO_SLT
, "MSU Request (message to MTP2 link)"},
192 { PDU_MTP3_FROM_SLT
, "MSU Indication (message from MTP2 link)"},
193 { PDU_RETRIEVAL_REQUEST
, "Retrieval Request"},
194 { PDU_RETRIEVAL_CONFIRM
, "Retrieval Confirm"},
195 { 0x14, "Retrieval Indication"},
196 { 0x15, "Retrieval Message"},
197 { PDU_LSC_REQUEST
, "Link State Controller Request"},
198 { PDU_LSC_CONFIRM
, "Link State Controller Confirm"},
199 { PDU_LSC_INDICATION
, "Link State Controller Indication"},
200 { 0x40, "Configuration Request"},
201 { 0x41, "Configuration Confirm"},
202 { 0x42, "Status Request"},
203 { 0x43, "Status Confirm"},
204 { PDU_STAT_REQUEST
, "Statistic Request"},
205 { 0x45, "Statistic Confirm"},
206 { 0x46, "Control Request"},
207 { 0x47, "Control Confirm"},
208 { 0x50, "Flow Control Request"},
209 { 0x51, "Flow Control Indication"},
213 /* TODO: Change to useful name once known */
214 #define SM_PROTOCOL_X004 0x0004 /* https://gitlab.com/wireshark/wireshark/-/issues/7188 */
215 /* RUDP/SM stack called BSM V1 (version 1 versus Version 0 used for SS7). */
216 #define SM_PROTOCOL_X100 0x0100
217 #define SM_PROTOCOL_X101 0x0101
218 #define SM_PROTOCOL_X114 0x0114
219 #define SM_PROTOCOL_X122 0x0122
222 /* Initialize the protocol and registered fields */
225 static int hf_sm_sm_msg_type
;
226 static int hf_sm_protocol
;
227 static int hf_sm_msg_id
;
228 static int hf_sm_msg_type
;
229 static int hf_sm_channel
;
230 static int hf_sm_bearer
;
231 static int hf_sm_len
;
232 static int hf_sm_ip_addr
;
233 static int hf_sm_context
;
234 static int hf_sm_eisup_msg_id
;
235 static int hf_sm_tag
;
236 static int hf_sm_alignment_type
;
237 static int hf_sm_backhaul_reason_code
;
238 static int hf_sm_backhaul_event_code
;
239 static int hf_sm_backhaul_cause_code
;
240 static int hf_sm_linkdown_cause_code
;
241 static int hf_sm_retrieval_type
;
242 static int hf_sm_lsc_state_type
;
243 static int hf_sm_stat_request_type
;
244 static int hf_sm_bsn_num
;
246 /* Initialize the subtree pointers */
249 static dissector_handle_t sdp_handle
;
250 static dissector_handle_t mtp3_handle
;
251 static dissector_handle_t q931_handle
;
253 /* Code to actually dissect the packets */
255 dissect_sm(tvbuff_t
*tvb
, packet_info
*pinfo
, proto_tree
*tree
, void* data _U_
)
259 tvbuff_t
*next_tvb
= NULL
;
260 uint32_t sm_message_type
;
261 uint32_t bh_event_code
= 0;
263 uint16_t msg_type
= 0;
268 sm_message_type
= tvb_get_ntohl(tvb
,offset
);
270 col_set_str(pinfo
->cinfo
, COL_PROTOCOL
, "SM");
272 col_add_fstr(pinfo
->cinfo
, COL_INFO
, "Cisco SM Packet (%s)",
273 val_to_str_const(sm_message_type
, sm_message_type_value_info
,"reserved"));
275 ti
= proto_tree_add_item(tree
, proto_sm
, tvb
, offset
, -1, ENC_NA
);
276 sm_tree
= proto_item_add_subtree(ti
, ett_sm
);
278 proto_tree_add_uint_format_value(sm_tree
, hf_sm_sm_msg_type
, tvb
, offset
, 4, sm_message_type
,
279 "%s (0x%0x)", val_to_str_const(sm_message_type
, sm_message_type_value
, "reserved"), sm_message_type
);
282 if (sm_message_type
== MESSAGE_TYPE_PDU
) {
283 proto_tree_add_item(sm_tree
, hf_sm_protocol
, tvb
, offset
, 2, ENC_BIG_ENDIAN
);
284 protocol
= tvb_get_ntohs(tvb
,offset
);
287 /* start case RUDP BSM v.1 ---------------------------------------------------------- */
288 case SM_PROTOCOL_X004
:
289 proto_tree_add_item(sm_tree
, hf_sm_msg_id
, tvb
, offset
, 2, ENC_BIG_ENDIAN
);
291 msg_type
= tvb_get_ntohs(tvb
,offset
);
292 proto_tree_add_uint_format_value(sm_tree
, hf_sm_msg_type
, tvb
, offset
, 2, msg_type
,
293 "%s (0x%0x)", val_to_str_const(msg_type
, sm_pdu_type_value
, "reserved"),
295 msg_type
= tvb_get_ntohs(tvb
,offset
);
297 proto_tree_add_item(sm_tree
, hf_sm_channel
, tvb
, offset
, 2, ENC_BIG_ENDIAN
);
299 proto_tree_add_item(sm_tree
, hf_sm_bearer
, tvb
, offset
, 2, ENC_BIG_ENDIAN
);
301 proto_tree_add_item(sm_tree
, hf_sm_len
, tvb
, offset
, 2, ENC_BIG_ENDIAN
);
302 length
= tvb_get_ntohs(tvb
,offset
);
304 proto_item_set_len(ti
, 16);
307 next_tvb
= tvb_new_subset_length(tvb
, offset
, length
);
309 if ((msg_type
== PDU_MTP3_TO_SLT
|| msg_type
== PDU_MTP3_FROM_SLT
)) {
310 call_dissector(q931_handle
, next_tvb
, pinfo
, tree
);
312 call_data_dissector(next_tvb
, pinfo
, tree
);
317 /* end case RUDP BSM v.1 ---------------------------------------------------------- */
319 case SM_PROTOCOL_X100
:
320 case SM_PROTOCOL_X122
:
321 /* Protocol 0x100/0x122 only contains a length and then an EISUP packet */
322 proto_tree_add_item(sm_tree
, hf_sm_len
, tvb
, offset
, 2, ENC_BIG_ENDIAN
);
323 length
= tvb_get_ntohs(tvb
,offset
);
325 proto_item_set_len(ti
, 8);
327 /* This should be the EISUP dissector but we haven't got one
328 * right now - so decode it as data for now ... */
329 next_tvb
= tvb_new_subset_length(tvb
, offset
, length
);
330 call_data_dissector(next_tvb
, pinfo
, sm_tree
);
333 case SM_PROTOCOL_X101
:
334 /* XXX Reverse enginered so this may not be correct!!!
335 * EISUP - used between Cisco HSI and Cisco PGW devices,
336 * uses RUDP with default port number 8003.
337 * Protocol stack is RUDP->Cisco SM->SDP.
338 * This implementation is PROPRIETARY
340 proto_tree_add_item(sm_tree
, hf_sm_len
, tvb
, offset
, 2, ENC_BIG_ENDIAN
);
341 length
= tvb_get_ntohs(tvb
,offset
);
343 proto_item_set_len(ti
, length
+ offset
);
344 /* The next stuff seems to be IP addr */
345 proto_tree_add_item(sm_tree
, hf_sm_ip_addr
, tvb
, offset
, 4, ENC_BIG_ENDIAN
);
347 /* This part looks to be the same per session */
348 proto_tree_add_item(sm_tree
, hf_sm_context
, tvb
, offset
, 4, ENC_BIG_ENDIAN
);
350 /* Some sort of message type? */
351 proto_tree_add_item(sm_tree
, hf_sm_eisup_msg_id
, tvb
, offset
, 1, ENC_BIG_ENDIAN
);
353 /* XXX Problem are tags 1 or two bytes???*/
354 proto_tree_add_item(sm_tree
, hf_sm_tag
, tvb
, offset
, 2, ENC_BIG_ENDIAN
);
356 tag
= tvb_get_ntohs(tvb
,offset
);
359 proto_tree_add_item(sm_tree
, hf_sm_len
, tvb
, offset
, 2, ENC_BIG_ENDIAN
);
360 length
= tvb_get_ntohs(tvb
,offset
);
362 next_tvb
= tvb_new_subset_length(tvb
, offset
, length
);
363 call_dissector(sdp_handle
, next_tvb
, pinfo
, sm_tree
);
364 /*offset = offset+length;*/
369 case SM_PROTOCOL_X114
:
370 /* XXX Reverse enginered so this may not be correct!!! */
371 proto_tree_add_item(sm_tree
, hf_sm_len
, tvb
, offset
, 2, ENC_BIG_ENDIAN
);
372 length
= tvb_get_ntohs(tvb
,offset
);
374 proto_item_set_len(ti
, length
+ offset
);
375 /* The next stuff seems to be IP addr */
376 proto_tree_add_item(sm_tree
, hf_sm_ip_addr
, tvb
, offset
, 4, ENC_BIG_ENDIAN
);
378 proto_tree_add_item(sm_tree
, hf_sm_context
, tvb
, offset
, 4, ENC_BIG_ENDIAN
);
380 /* Some sort of message type? */
381 proto_tree_add_item(sm_tree
, hf_sm_eisup_msg_id
, tvb
, offset
, 1, ENC_BIG_ENDIAN
);
383 /* XXX Problem are tags 1 or two bytes???*/
384 proto_tree_add_item(sm_tree
, hf_sm_tag
, tvb
, offset
, 2, ENC_BIG_ENDIAN
);
386 tag
= tvb_get_ntohs(tvb
,offset
);
389 proto_tree_add_item(sm_tree
, hf_sm_len
, tvb
, offset
, 2, ENC_BIG_ENDIAN
);
390 length
= tvb_get_ntohs(tvb
,offset
);
392 next_tvb
= tvb_new_subset_length(tvb
, offset
, length
);
393 call_dissector(sdp_handle
, next_tvb
, pinfo
, sm_tree
);
394 /*offset = offset+length;*/
399 proto_tree_add_item(sm_tree
, hf_sm_msg_id
, tvb
, offset
, 2, ENC_BIG_ENDIAN
);
401 msg_type
= tvb_get_ntohs(tvb
,offset
);
402 proto_tree_add_uint_format_value(sm_tree
, hf_sm_msg_type
, tvb
, offset
, 2, msg_type
,
403 "%s (0x%0x)", val_to_str_const(msg_type
, sm_pdu_type_value
, "reserved"),
405 msg_type
= tvb_get_ntohs(tvb
,offset
);
407 proto_tree_add_item(sm_tree
, hf_sm_channel
, tvb
, offset
, 2, ENC_BIG_ENDIAN
);
409 proto_tree_add_item(sm_tree
, hf_sm_bearer
, tvb
, offset
, 2, ENC_BIG_ENDIAN
);
411 proto_tree_add_item(sm_tree
, hf_sm_len
, tvb
, offset
, 2, ENC_BIG_ENDIAN
);
412 length
= tvb_get_ntohs(tvb
,offset
);
414 proto_item_set_len(ti
, 16);
417 next_tvb
= tvb_new_subset_length(tvb
, offset
, length
);
420 case PDU_MTP3_TO_SLT
:
421 case PDU_MTP3_FROM_SLT
:
422 call_dissector(mtp3_handle
, next_tvb
, pinfo
, tree
);
424 case PDU_CONNECT_REQUEST
:
425 case PDU_CONNECT_CONFIRM
:
426 proto_tree_add_item(sm_tree
, hf_sm_alignment_type
, tvb
, offset
, 4, ENC_BIG_ENDIAN
);
428 case PDU_DISCONNECT_CONFIRM
:
429 case PDU_DISCONNECT_INDICATION
:
430 proto_tree_add_item(sm_tree
, hf_sm_backhaul_reason_code
, tvb
, offset
, 4, ENC_BIG_ENDIAN
);
432 case PDU_RETRIEVAL_REQUEST
:
433 case PDU_RETRIEVAL_CONFIRM
:
434 proto_tree_add_item(sm_tree
, hf_sm_retrieval_type
, tvb
, offset
, 4, ENC_BIG_ENDIAN
);
435 if (msg_type
== PDU_RETRIEVAL_CONFIRM
&& tvb_get_ntohl(tvb
,offset
) == 0x01) {
437 proto_tree_add_item(sm_tree
, hf_sm_bsn_num
, tvb
, offset
, 4, ENC_BIG_ENDIAN
);
440 case PDU_LSC_REQUEST
:
441 case PDU_LSC_CONFIRM
:
442 proto_tree_add_item(sm_tree
, hf_sm_lsc_state_type
, tvb
, offset
, 4, ENC_BIG_ENDIAN
);
444 case PDU_LSC_INDICATION
:
445 proto_tree_add_item(sm_tree
, hf_sm_backhaul_event_code
, tvb
, offset
, 4, ENC_BIG_ENDIAN
);
446 bh_event_code
= tvb_get_ntohl(tvb
,offset
);
447 if (bh_event_code
== 0x02 || bh_event_code
== 0x04) {
449 proto_tree_add_item(sm_tree
, hf_sm_linkdown_cause_code
, tvb
, offset
, 4, ENC_BIG_ENDIAN
);
450 } else if (bh_event_code
== 0x06) {
452 proto_tree_add_item(sm_tree
, hf_sm_backhaul_cause_code
, tvb
, offset
, 4, ENC_BIG_ENDIAN
);
455 case PDU_STAT_REQUEST
:
456 proto_tree_add_item(sm_tree
, hf_sm_stat_request_type
, tvb
, offset
, 4, ENC_BIG_ENDIAN
);
459 call_data_dissector(next_tvb
, pinfo
, tree
);
465 return tvb_captured_length(tvb
);
469 proto_register_sm(void)
471 static hf_register_info hf
[] = {
472 { &hf_sm_sm_msg_type
,
473 { "SM Message Type", "sm.sm_msg_type",
474 FT_UINT32
, BASE_HEX
, NULL
, 0x0,
478 { "Protocol Type", "sm.protocol",
479 FT_UINT16
, BASE_HEX
, NULL
, 0x0,
483 { "Message ID", "sm.msgid",
484 FT_UINT16
, BASE_HEX
, NULL
, 0x0,
488 { "Message Type", "sm.msg_type",
489 FT_UINT16
, BASE_HEX
, NULL
, 0x0,
493 { "Channel ID", "sm.channel",
494 FT_UINT16
, BASE_HEX
, NULL
, 0x0,
498 { "Bearer ID", "sm.bearer",
499 FT_UINT16
, BASE_HEX
, NULL
, 0x0,
503 { "Length", "sm.len",
504 FT_UINT16
, BASE_DEC
, NULL
, 0x0,
508 { "IPv4 address","sm.ip_addr",
509 FT_IPv4
,BASE_NONE
, NULL
, 0x0,
513 { "Context","sm.context",
514 FT_UINT32
, BASE_DEC
, NULL
, 0x0,
515 "Context(guesswork!)", HFILL
}
517 { &hf_sm_eisup_msg_id
,
518 { "Message id","sm.eisup_message_id",
519 FT_UINT8
, BASE_DEC
, NULL
, 0x0,
520 "Message id(guesswork!)", HFILL
}
524 FT_UINT16
, BASE_DEC
, NULL
, 0x0,
525 "Tag(guesswork!)", HFILL
}
527 { &hf_sm_alignment_type
,
528 { "Alignment type","sm.connect_type",
529 FT_UINT32
, BASE_HEX
, VALS(sm_alignment_type
), 0x0,
532 { &hf_sm_backhaul_reason_code
,
533 { "Backhaul reason code","sm.backhaul_reason",
534 FT_UINT32
, BASE_HEX
, VALS(sm_backhaul_reason_code
), 0x0,
537 { &hf_sm_backhaul_event_code
,
538 { "Backhaul event code","sm.backhaul_event",
539 FT_UINT32
, BASE_HEX
, VALS(sm_backhaul_event_code
), 0x0,
542 { &hf_sm_backhaul_cause_code
,
543 { "Backhaul cause code","sm.backhaul_cause",
544 FT_UINT32
, BASE_HEX
, VALS(sm_backhaul_cause_code
), 0x0,
547 { &hf_sm_linkdown_cause_code
,
548 { "Link down cause","sm.linkdown_reason",
549 FT_UINT32
, BASE_HEX
, VALS(sm_linkdown_cause_code
), 0x0,
553 { &hf_sm_retrieval_type
,
554 { "Retrieval type","sm.retrieval_type",
555 FT_UINT32
, BASE_HEX
, VALS(sm_retrieval_type
), 0x0,
558 { &hf_sm_lsc_state_type
,
559 { "LSC Request type","sm.lsc_state_type",
560 FT_UINT32
, BASE_HEX
, VALS(sm_lsc_state_type
), 0x0,
563 { &hf_sm_stat_request_type
,
564 { "Statistic request type","sm.stat_request_type",
565 FT_UINT32
, BASE_HEX
, VALS(sm_stat_request_type
), 0x0,
569 { "BSN","sm.bsn_num",
570 FT_UINT32
, BASE_DEC
, NULL
, 0x0,
576 /* Setup protocol subtree array */
577 static int *ett
[] = {
581 /* Register the protocol name and description */
582 proto_sm
= proto_register_protocol("Cisco Session Management",
585 register_dissector("sm", dissect_sm
, proto_sm
);
587 /* Required function calls to register the header fields and subtrees used */
588 proto_register_field_array(proto_sm
, hf
, array_length(hf
));
589 proto_register_subtree_array(ett
, array_length(ett
));
593 proto_reg_handoff_sm(void)
595 sdp_handle
= find_dissector_add_dependency("sdp", proto_sm
);
596 mtp3_handle
= find_dissector_add_dependency("mtp3", proto_sm
);
597 q931_handle
= find_dissector_add_dependency("q931", proto_sm
);
601 * Editor modelines - https://www.wireshark.org/tools/modelines.html
606 * indent-tabs-mode: nil
609 * vi: set shiftwidth=4 tabstop=8 expandtab:
610 * :indentSize=4:tabSize=8:noTabs=true: