From Jeff Morriss: add support for WTAP_ENCAP_MTP2 and WTAP_ENCAP_MTP3.

svn path=/trunk/; revision=9158
This commit is contained in:
Guy Harris 2003-12-03 22:50:41 +00:00
parent 02260b4056
commit 30893110ad
2 changed files with 14 additions and 2 deletions

View File

@ -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");
}

View File

@ -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");
}