aboutsummaryrefslogtreecommitdiffstats
path: root/packet-m2tp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-01-14 23:53:40 +0000
committerGuy Harris <guy@alum.mit.edu>2003-01-14 23:53:40 +0000
commita002a0fec41fdab23a6f247ea2b209bad0abefc8 (patch)
treed8a94839fe39ed71025a4d0c4f47543eff31f44c /packet-m2tp.c
parente3fe8c0d34490c77ea9d47813198ca15d55a5cd2 (diff)
From Christian Falckenberg: beginnings of a MEGACO dissector.
Move SCTP payload protocol IDs to a header file, and get the PPIDs from that header file rather than defining them in dissectors running atop SCTP. Use both the old(?) and official PPID for ASAP. svn path=/trunk/; revision=6926
Diffstat (limited to 'packet-m2tp.c')
-rw-r--r--packet-m2tp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/packet-m2tp.c b/packet-m2tp.c
index 715e1a6248..d5678ef964 100644
--- a/packet-m2tp.c
+++ b/packet-m2tp.c
@@ -5,7 +5,7 @@
*
* Copyright 2001, Heinz Prantner <heinz.prantner[AT]radisys.com>
*
- * $Id: packet-m2tp.c,v 1.5 2002/12/02 23:43:26 guy Exp $
+ * $Id: packet-m2tp.c,v 1.6 2003/01/14 23:53:32 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -36,9 +36,9 @@
#include <glib.h>
#include <epan/packet.h>
+#include "sctpppids.h"
#define SCTP_PORT_M2TP 9908 /* unassigned port number (not assigned by IANA) */
-#define M2TP_PAYLOAD_PROTO_ID 99 /* s-link */
#define VERSION_LENGTH 1
#define RESERVED_LENGTH 1
@@ -678,6 +678,6 @@ proto_reg_handoff_m2tp(void)
mtp2_handle = find_dissector("mtp2");
mtp2_proto_id = proto_get_id_by_filter_name("mtp2");
m2tp_handle = create_dissector_handle(dissect_m2tp, proto_m2tp);
- dissector_add("sctp.ppi", M2TP_PAYLOAD_PROTO_ID, m2tp_handle);
+ dissector_add("sctp.ppi", M2TP_PAYLOAD_PROTOCOL_ID, m2tp_handle);
dissector_add("sctp.port", SCTP_PORT_M2TP, m2tp_handle);
}