forked from osmocom/wireshark
![Vasil Velichkov](/assets/img/avatar_default.png)
According to 3GPP TS 29.002 this parameter contains an address field which is encoded as defined in 3GPP TS 23.040. Change-Id: If82a09e43729a90ede1619da34e50ed5d14e869a Reviewed-on: https://code.wireshark.org/review/27569 Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
41 lines
1.4 KiB
C
41 lines
1.4 KiB
C
/* packet-gsm_sms.h
|
|
*
|
|
* Copyright 2004, Michael Lum <mlum [AT] telostech.com>,
|
|
* In association with Telos Technology Inc.
|
|
*
|
|
* Wireshark - Network traffic analyzer
|
|
* By Gerald Combs <gerald@wireshark.org>
|
|
* Copyright 1998 Gerald Combs
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
enum character_set {
|
|
OTHER,
|
|
GSM_7BITS,
|
|
ASCII_7BITS
|
|
};
|
|
|
|
/*
|
|
* contains a subset of parameters dissected from the UDH
|
|
* that are useful in the GSM SMS dissector or other dissectors
|
|
* (packet-ansi_637.c)
|
|
*/
|
|
typedef struct {
|
|
guint16 sm_id; /* message identifier */
|
|
guint16 frags; /* total number of fragments */
|
|
guint16 frag; /* fragment number */
|
|
guint16 port_src; /* application port addressing scheme source port */
|
|
guint16 port_dst; /* application port addressing scheme destination port */
|
|
} gsm_sms_udh_fields_t;
|
|
|
|
void dis_field_udh(tvbuff_t *tvb, packet_info* pinfo, proto_tree *tree, guint32 *offset, guint32 *length,
|
|
guint8 *udl, enum character_set cset, guint8 *fill_bits, gsm_sms_udh_fields_t *p_udh_fields);
|
|
|
|
void dis_field_addr(tvbuff_t *tvb, packet_info* pinfo, proto_tree *tree, guint32 *offset_p, const gchar *title);
|
|
|
|
/* Data structure that can be optionally given to gsm_sms dissector */
|
|
typedef struct _gsm_sms_data_t {
|
|
gboolean stk_packing_required;
|
|
} gsm_sms_data_t;
|