diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-01-10 09:46:19 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-01-10 09:46:19 +0000 |
commit | 5f07876f988644a5a3116668445c250976b9dbbc (patch) | |
tree | b4aaccf4a729e251dd03e643c05d2f9309d8c723 /packet-atm.c | |
parent | 7ef0b169aad27f270b7a7cd0dddb0b8b7bceeccc (diff) |
Put the traffic type right after the AAL.
Dump unknown AAL purportedly-reassembled data as raw data.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6895 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-atm.c')
-rw-r--r-- | packet-atm.c | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/packet-atm.c b/packet-atm.c index 8e98620615..f8318ee951 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.58 2003/01/10 04:38:43 guy Exp $ + * $Id: packet-atm.c,v 1.59 2003/01/10 09:46:19 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -925,12 +925,9 @@ dissect_reassembled_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, /* * This is reassembled traffic, so the cell headers are missing; - * show the VPI and VCI from the pseudo-header. + * show the traffic type for AAL5 traffic, and the VPI and VCI, + * from the pseudo-header. */ - proto_tree_add_uint(atm_tree, hf_atm_vpi, tvb, 0, 0, - pinfo->pseudo_header->atm.vpi); - proto_tree_add_uint(atm_tree, hf_atm_vci, tvb, 0, 0, - pinfo->pseudo_header->atm.vci); if (pinfo->pseudo_header->atm.aal == AAL_5) { proto_tree_add_text(atm_tree, tvb, 0, 0, "Traffic type: %s", val_to_str(pinfo->pseudo_header->atm.type, aal5_hltype_vals, @@ -956,6 +953,10 @@ dissect_reassembled_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, break; } } + proto_tree_add_uint(atm_tree, hf_atm_vpi, tvb, 0, 0, + pinfo->pseudo_header->atm.vpi); + proto_tree_add_uint(atm_tree, hf_atm_vci, tvb, 0, 0, + pinfo->pseudo_header->atm.vci); next_tvb = tvb; if (truncated) { @@ -1063,6 +1064,13 @@ dissect_reassembled_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, } } break; + + default: + if (tree) { + /* Dump it as raw data. */ + call_dissector(data_handle, next_tvb, pinfo, tree); + } + break; } } |