aboutsummaryrefslogtreecommitdiffstats
path: root/packet-lapd.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-05-27 07:27:21 +0000
committerGuy Harris <guy@alum.mit.edu>2001-05-27 07:27:21 +0000
commit9baeab5cab7db334df4ce651a5c071d7dd7e2be9 (patch)
tree287d9a4873c3bfc79f4cd12c75fe42c06710c039 /packet-lapd.c
parent34ff64ae9c1641b6af0eff785de60063930dc8c0 (diff)
Call the Q.931 dissector through a handle.
Update Gerald's e-mail address. svn path=/trunk/; revision=3462
Diffstat (limited to 'packet-lapd.c')
-rw-r--r--packet-lapd.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/packet-lapd.c b/packet-lapd.c
index aa83d0c00c..b71c360e9d 100644
--- a/packet-lapd.c
+++ b/packet-lapd.c
@@ -2,10 +2,10 @@
* Routines for LAPD frame disassembly
* Gilbert Ramirez <gram@xiexie.org>
*
- * $Id: packet-lapd.c,v 1.20 2001/01/22 00:20:29 guy Exp $
+ * $Id: packet-lapd.c,v 1.21 2001/05/27 07:27:21 guy Exp $
*
* Ethereal - Network traffic analyzer
- * By Gerald Combs <gerald@zing.org>
+ * By Gerald Combs <gerald@ethereal.com>
* Copyright 1998
*
*
@@ -59,6 +59,8 @@ static gint ett_lapd = -1;
static gint ett_lapd_address = -1;
static gint ett_lapd_control = -1;
+static dissector_handle_t q931_handle;
+
/*
* Bits in the address field.
*/
@@ -145,7 +147,7 @@ dissect_lapd(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
switch (sapi) {
case LAPD_SAPI_Q931:
- dissect_q931(next_tvb, pinfo, tree);
+ call_dissector(q931_handle, next_tvb, pinfo, tree);
break;
default:
@@ -203,5 +205,10 @@ proto_register_lapd(void)
void
proto_reg_handoff_lapd(void)
{
+ /*
+ * Get handle for the Q.931 dissector.
+ */
+ q931_handle = find_dissector("q931");
+
dissector_add("wtap_encap", WTAP_ENCAP_LAPD, dissect_lapd, proto_lapd);
}