aboutsummaryrefslogtreecommitdiffstats
path: root/packet-lapd.c
diff options
context:
space:
mode:
authorEd Warnicke <hagbard@physics.rutgers.edu>2001-11-25 22:51:14 +0000
committerEd Warnicke <hagbard@physics.rutgers.edu>2001-11-25 22:51:14 +0000
commit34dbc86e65d64bf747d948051ba8d4d3e967d6d1 (patch)
tree20244c5cfd8f43e50e4dccd78b8a9ce386894d49 /packet-lapd.c
parenta810a01338337a3802ff19ef9d952999181458c3 (diff)
Moved from using dissect_data to using call_dissector()
svn path=/trunk/; revision=4264
Diffstat (limited to 'packet-lapd.c')
-rw-r--r--packet-lapd.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/packet-lapd.c b/packet-lapd.c
index 3cc725b94e..fea72a6be0 100644
--- a/packet-lapd.c
+++ b/packet-lapd.c
@@ -2,7 +2,7 @@
* Routines for LAPD frame disassembly
* Gilbert Ramirez <gram@alumni.rice.edu>
*
- * $Id: packet-lapd.c,v 1.24 2001/11/13 23:55:30 gram Exp $
+ * $Id: packet-lapd.c,v 1.25 2001/11/25 22:51:13 hagbard Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -59,6 +59,7 @@ static gint ett_lapd_address = -1;
static gint ett_lapd_control = -1;
static dissector_handle_t q931_handle;
+static dissector_handle_t data_handle;
/*
* Bits in the address field.
@@ -150,11 +151,11 @@ dissect_lapd(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
break;
default:
- dissect_data(next_tvb, 0, pinfo, tree);
+ call_dissector(data_handle,next_tvb, pinfo, tree);
break;
}
} else
- dissect_data(next_tvb, 0, pinfo, tree);
+ call_dissector(data_handle,next_tvb, pinfo, tree);
}
void
@@ -208,6 +209,7 @@ proto_reg_handoff_lapd(void)
* Get handle for the Q.931 dissector.
*/
q931_handle = find_dissector("q931");
+ data_handle = find_dissector("data");
dissector_add("wtap_encap", WTAP_ENCAP_LAPD, dissect_lapd, proto_lapd);
}