1 /* packet-gsm_map-template.h
2 * Routines for GSM MAP packet dissection
3 * Copyright 2004 - 2006, Anders Broman <anders.broman@ericsson.com>
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
12 #ifndef PACKET_GSM_MAP_H
13 #define PACKET_GSM_MAP_H
15 #include "ws_symbol_export.h"
17 /* Defines for the GSM MAP taps */
18 #define GSM_MAP_MAX_NUM_OPR_CODES 256
20 typedef struct _gsm_map_tap_rec_t
{
27 #define SMS_ENCODING_NOT_SET 0
28 #define SMS_ENCODING_7BIT 1
29 #define SMS_ENCODING_8BIT 2
30 #define SMS_ENCODING_UCS2 3
31 #define SMS_ENCODING_7BIT_LANG 4
32 #define SMS_ENCODING_UCS2_LANG 5
34 WS_DLL_PUBLIC
const value_string gsm_map_opr_code_strings
[];
36 extern const value_string ssCode_vals
[];
37 extern const value_string gsm_map_PDP_Type_Organisation_vals
[];
38 extern const value_string gsm_map_ietf_defined_pdp_vals
[];
39 extern const value_string gsm_map_etsi_defined_pdp_vals
[];
41 uint8_t dissect_cbs_data_coding_scheme(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
, uint16_t offset
);
42 void dissect_gsm_map_msisdn(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
);
45 GSM_MAP_SM_RP_OA_NO_ID
= 0,
46 GSM_MAP_SM_RP_OA_MSISDN
,
47 GSM_MAP_SM_RP_OA_SERVICE_CENTER_ADDRESS
48 } gsm_map_sm_rp_oa_id
;
51 GSM_MAP_SM_RP_DA_NO_ID
= 0,
52 GSM_MAP_SM_RP_DA_IMSI
,
53 GSM_MAP_SM_RP_DA_LMSI
,
54 GSM_MAP_SM_RP_DA_SERVICE_CENTER_ADDRESS
55 } gsm_map_sm_rp_da_id
;
57 /* structure accessible via p_get_proto_data(wmem_file_scope(), pinfo, proto_gsm_map, 0) */
59 gsm_map_sm_rp_oa_id sm_rp_oa_id
;
60 const char *sm_rp_oa_str
;
61 gsm_map_sm_rp_da_id sm_rp_da_id
;
62 const char *sm_rp_da_str
;
63 uint32_t tcap_src_tid
;
64 } gsm_map_packet_info_t
;
66 #include "packet-gsm_map-exp.h"
69 #endif /* PACKET_GSM_MAP_H */