From 56f644145e0a4299a10099738fb74e1a08cd6fbd Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Thu, 31 Oct 2002 07:12:42 +0000 Subject: Discard the WTAP_ENCAP_LAPD encapsulation type in favor of a WTAP_ENCAP_ISDN encapsulation type, which includes a pseudo-header giving the direction (user-to-network or network-to-user) and the channel number. Add a new circuit type, using the ISDN channel number as the circuit ID. Add an ISDN dissector to put the direction and channel number into the protocol tree and to call the appropriate dissector for the payload based on the channel (LAPD for the D channel; V.120, PPP, or data for B channels, based on some heuristics). svn path=/trunk/; revision=6521 --- epan/circuit.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'epan/circuit.c') diff --git a/epan/circuit.c b/epan/circuit.c index f4a180a813..3f8a192159 100644 --- a/epan/circuit.c +++ b/epan/circuit.c @@ -1,7 +1,7 @@ /* circuit.c * Routines for building lists of packets that are part of a "circuit" * - * $Id: circuit.c,v 1.2 2002/10/29 07:22:55 guy Exp $ + * $Id: circuit.c,v 1.3 2002/10/31 07:12:38 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -235,12 +235,17 @@ circuit_delete_proto_data(circuit_t *conv, int proto) } void -circuit_set_dissector(circuit_t *circuit, - dissector_handle_t handle) +circuit_set_dissector(circuit_t *circuit, dissector_handle_t handle) { circuit->dissector_handle = handle; } +dissector_handle_t +circuit_get_dissector(circuit_t *circuit) +{ + return circuit->dissector_handle; +} + /* * Given a circuit type and ID for a packet, search for a matching * circuit and, if found and it has a circuit dissector, -- cgit v1.2.3