2004-03-27 11:32:30 +00:00
|
|
|
/* packet-gsm_sms.h
|
|
|
|
*
|
|
|
|
* Copyright 2004, Michael Lum <mlum [AT] telostech.com>,
|
|
|
|
* In association with Telos Technology Inc.
|
|
|
|
*
|
2006-05-21 04:49:01 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
2004-03-27 11:32:30 +00:00
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
2012-06-28 23:18:38 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2004-03-27 11:32:30 +00:00
|
|
|
*/
|
|
|
|
|
2013-11-28 21:59:02 +00:00
|
|
|
enum character_set {
|
|
|
|
OTHER,
|
|
|
|
GSM_7BITS,
|
|
|
|
ASCII_7BITS
|
|
|
|
};
|
|
|
|
|
2013-12-12 22:35:45 +00:00
|
|
|
/*
|
|
|
|
* 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;
|
|
|
|
|
2013-06-12 16:59:59 +00:00
|
|
|
void dis_field_udh(tvbuff_t *tvb, proto_tree *tree, guint32 *offset, guint32 *length,
|
2013-12-12 22:35:45 +00:00
|
|
|
guint8 *udl, enum character_set cset, guint8 *fill_bits, gsm_sms_udh_fields_t *p_udh_fields);
|
2013-12-05 06:23:17 +00:00
|
|
|
|
|
|
|
/* 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;
|