summaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-gsm_sms.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:34:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:34:10 +0000
commite4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc (patch)
tree68cb5ef9081156392f1dd62a00c6ccc1451b93df /epan/dissectors/packet-gsm_sms.h
parentInitial commit. (diff)
downloadwireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.tar.xz
wireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.zip
Adding upstream version 4.2.2.upstream/4.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'epan/dissectors/packet-gsm_sms.h')
-rw-r--r--epan/dissectors/packet-gsm_sms.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/epan/dissectors/packet-gsm_sms.h b/epan/dissectors/packet-gsm_sms.h
new file mode 100644
index 00000000..525cf6ec
--- /dev/null
+++ b/epan/dissectors/packet-gsm_sms.h
@@ -0,0 +1,47 @@
+/* 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
+ */
+
+#ifndef __PACKET_GSM_SMS_H_
+#define __PACKET_GSM_SMS_H_
+
+enum character_set {
+ OTHER,
+ GSM_7BITS,
+ ASCII_7BITS,
+ GSM_7BITS_UNPACKED,
+ UCS2
+};
+
+/*
+ * 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;
+
+#endif