aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/c1222/packet-c1222-template.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2013-05-01 08:34:40 +0000
committerAnders Broman <anders.broman@ericsson.com>2013-05-01 08:34:40 +0000
commite9f90d8c42f1066ce8817222f4de7138140c7cce (patch)
tree654d9f3f4ab484759365790df877dbca4e7f7779 /asn1/c1222/packet-c1222-template.c
parentf19efd05f7526c41a56532f5e3ac363c22fc1d30 (diff)
Make C12.22 work over UDP.
svn path=/trunk/; revision=49104
Diffstat (limited to 'asn1/c1222/packet-c1222-template.c')
-rw-r--r--asn1/c1222/packet-c1222-template.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/asn1/c1222/packet-c1222-template.c b/asn1/c1222/packet-c1222-template.c
index ec1949ab29..fdc28971b3 100644
--- a/asn1/c1222/packet-c1222-template.c
+++ b/asn1/c1222/packet-c1222-template.c
@@ -79,6 +79,7 @@
#define C1222_CMD_TIMING_SETUP 0x71
static dissector_handle_t c1222_handle=NULL;
+static dissector_handle_t c1222_udp_handle=NULL;
/* Initialize the protocol and registered fields */
static int proto_c1222 = -1;
@@ -993,7 +994,7 @@ dissect_epsem(tvbuff_t *tvb, int offset, guint32 len, packet_info *pinfo, proto_
* \param tree
*/
static void
-dissect_c1222_full(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
+dissect_c1222_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
proto_item *c1222_item = NULL;
proto_tree *c1222_tree = NULL;
@@ -1041,7 +1042,7 @@ static void
dissect_c1222(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
tcp_dissect_pdus(tvb, pinfo, tree, c1222_desegment, 5,
- get_c1222_message_len, dissect_c1222_full);
+ get_c1222_message_len, dissect_c1222_common);
}
/*--- proto_register_c1222 -------------------------------------------*/
@@ -1328,7 +1329,9 @@ proto_reg_handoff_c1222(void)
if( !initialized ) {
c1222_handle = create_dissector_handle(dissect_c1222, proto_c1222);
+ c1222_udp_handle = create_dissector_handle(dissect_c1222_common, proto_c1222);
dissector_add_uint("tcp.port", global_c1222_port, c1222_handle);
+ dissector_add_uint("udp.port", global_c1222_port, c1222_udp_handle);
initialized = TRUE;
}
}