aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-gsm_sim.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2016-12-09 13:21:13 -0500
committerMichael Mann <mmann78@netscape.net>2016-12-10 23:23:54 +0000
commit4097c1075b91fdb189d8b6f566bacb969fde4b97 (patch)
tree8a4151a6fdba0481015ce5c7e2ef0ef7b8c7b94a /epan/dissectors/packet-gsm_sim.c
parent2dfa603333416aec69719fb074388886f0fc96b2 (diff)
gsmtap: Introduce a new packet-gsmtap.h header file
Move the GSMTAP protocol related #defines to packet-gsmtap.h, as there are other dissectors (like packet-gsm_sim.c and future dissectors) need access to some of those #defines. Change-Id: Ibb3517bd773be63b7e3cd30104a5351427e22ebf Reviewed-on: https://code.wireshark.org/review/19185 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-gsm_sim.c')
-rw-r--r--epan/dissectors/packet-gsm_sim.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/epan/dissectors/packet-gsm_sim.c b/epan/dissectors/packet-gsm_sim.c
index 4ac06b61e3..47f2f436bb 100644
--- a/epan/dissectors/packet-gsm_sim.c
+++ b/epan/dissectors/packet-gsm_sim.c
@@ -28,6 +28,8 @@
#include <epan/packet.h>
+#include "packet-gsmtap.h"
+
void proto_register_gsm_sim(void);
void proto_reg_handoff_gsm_sim(void);
@@ -2935,7 +2937,7 @@ proto_reg_handoff_gsm_sim(void)
{
dissector_handle_t sim_handle;
sim_handle = find_dissector("gsm_sim");
- dissector_add_uint("gsmtap.type", 4, sim_handle);
+ dissector_add_uint("gsmtap.type", GSMTAP_TYPE_SIM, sim_handle);
sub_handle_cap = find_dissector_add_dependency("etsi_cat", proto_gsm_sim);
}