diff options
-rw-r--r-- | packet-mtp2.c | 8 | ||||
-rw-r--r-- | packet-mtp3.c | 8 |
2 files changed, 14 insertions, 2 deletions
diff --git a/packet-mtp2.c b/packet-mtp2.c index a8ebf6351e..6dee072eee 100644 --- a/packet-mtp2.c +++ b/packet-mtp2.c @@ -5,7 +5,7 @@ * * Copyright 2001, Michael Tuexen <tuexen [AT] fh-muenster.de> * - * $Id: packet-mtp2.c,v 1.8 2003/04/22 13:47:38 tuexen Exp $ + * $Id: packet-mtp2.c,v 1.9 2003/12/03 22:50:41 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -208,6 +208,12 @@ proto_register_mtp2(void) void proto_reg_handoff_mtp2(void) { + dissector_handle_t mtp2_handle; + + mtp2_handle = create_dissector_handle(dissect_mtp2, proto_mtp2); + + dissector_add("wtap_encap", WTAP_ENCAP_MTP2, mtp2_handle); + mtp3_handle = find_dissector("mtp3"); mtp3_proto_id = proto_get_id_by_filter_name("mtp3"); } diff --git a/packet-mtp3.c b/packet-mtp3.c index 1c1c0e4501..7ec8882aa5 100644 --- a/packet-mtp3.c +++ b/packet-mtp3.c @@ -9,7 +9,7 @@ * Copyright 2001, Michael Tuexen <tuexen [AT] fh-muenster.de> * Updated for ANSI and Chinese ITU support by Jeff Morriss <jeff.morriss[AT]ulticom.com> * - * $Id: packet-mtp3.c,v 1.22 2003/09/06 00:03:23 guy Exp $ + * $Id: packet-mtp3.c,v 1.23 2003/12/03 22:50:41 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -502,5 +502,11 @@ proto_register_mtp3(void) void proto_reg_handoff_mtp3(void) { + dissector_handle_t mtp3_handle; + + mtp3_handle = create_dissector_handle(dissect_mtp3, proto_mtp3); + + dissector_add("wtap_encap", WTAP_ENCAP_MTP3, mtp3_handle); + data_handle = find_dissector("data"); } |