From 50e696df812a10e47bb6c2b132728b826ca82a60 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Fri, 10 Jan 2003 04:04:42 +0000 Subject: The Sniffer file formats include a file to identify raw cells; export that flag in the ATM pseudo-header, and use it to determine whether a frame is a raw cell or a reassembled frame, rather than using the AAL, as you can have raw AAL5 cells in a capture. svn path=/trunk/; revision=6889 --- packet-atm.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'packet-atm.c') diff --git a/packet-atm.c b/packet-atm.c index 51df856d56..bdd57d9b9b 100644 --- a/packet-atm.c +++ b/packet-atm.c @@ -1,7 +1,7 @@ /* packet-atm.c * Routines for ATM packet disassembly * - * $Id: packet-atm.c,v 1.56 2003/01/09 04:11:08 guy Exp $ + * $Id: packet-atm.c,v 1.57 2003/01/10 04:04:39 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -1511,14 +1511,13 @@ dissect_atm_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, val_to_str(pinfo->pseudo_header->atm.aal, aal_vals, "Unknown AAL (%u)")); } - if (pinfo->pseudo_header->atm.aal == AAL_5 || - pinfo->pseudo_header->atm.aal == AAL_SIGNALLING) { - /* This is a reassembled PDU. */ - dissect_reassembled_pdu(tvb, pinfo, tree, atm_tree, truncated); - } else { - /* Assume this is a single cell, with the cell header at the beginning. */ + if (pinfo->pseudo_header->atm.flags & ATM_IS_CELL) { + /* This is a single cell, with the cell header at the beginning. */ proto_item_set_len(ti, 5); dissect_atm_cell(tvb, pinfo, tree, atm_tree); + } else { + /* This is a reassembled PDU. */ + dissect_reassembled_pdu(tvb, pinfo, tree, atm_tree, truncated); } } -- cgit v1.2.3