diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-05-27 07:27:21 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-05-27 07:27:21 +0000 |
commit | d0d8be41a4f2f518c34eaedeeec603d5fb66bcb0 (patch) | |
tree | 287d9a4873c3bfc79f4cd12c75fe42c06710c039 /packet-lapd.c | |
parent | b188881da1592d08e3a75ae72de90c4c2fbcc93f (diff) |
Call the Q.931 dissector through a handle.
Update Gerald's e-mail address.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3462 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-lapd.c')
-rw-r--r-- | packet-lapd.c | 13 |
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); } |