diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-01-10 09:46:19 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-01-10 09:46:19 +0000 |
commit | 42ca8b98d5e4edb299f47162352f607e7d130b1d (patch) | |
tree | b4aaccf4a729e251dd03e643c05d2f9309d8c723 /packet-atm.c | |
parent | fabf144b83e393996f872155b61a4fee0c4735c4 (diff) | |
download | wireshark-42ca8b98d5e4edb299f47162352f607e7d130b1d.tar.gz wireshark-42ca8b98d5e4edb299f47162352f607e7d130b1d.tar.bz2 wireshark-42ca8b98d5e4edb299f47162352f607e7d130b1d.zip |
Put the traffic type right after the AAL.
Dump unknown AAL purportedly-reassembled data as raw data.
svn path=/trunk/; revision=6895
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; } } |