diff options
author | Guy Harris <guy@alum.mit.edu> | 2005-07-04 03:45:29 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2005-07-04 03:45:29 +0000 |
commit | 828641b2ad727b9b8d6411e8d3ff2bd541f4971f (patch) | |
tree | 6a95d2ff17ca6d3d285cd58f50ccd3057e66369d /epan/dissectors/packet-giop.c | |
parent | a241214ad5f07f82a55199d86ea20eb06b8886e0 (diff) |
Mark stub data as such if no dissector claims it.
svn path=/trunk/; revision=14842
Diffstat (limited to 'epan/dissectors/packet-giop.c')
-rw-r--r-- | epan/dissectors/packet-giop.c | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/epan/dissectors/packet-giop.c b/epan/dissectors/packet-giop.c index 4c241ed123..b7fb1c517c 100644 --- a/epan/dissectors/packet-giop.c +++ b/epan/dissectors/packet-giop.c @@ -2949,12 +2949,18 @@ dissect_reply_body (tvbuff_t *tvb, guint offset, packet_info *pinfo, exres = try_explicit_giop_dissector(tvb,pinfo,clnp_tree, &offset, header, entry->operation, entry->repoid ); } - /* Only call heuristic if no explicit dixxector was found */ + /* Only call heuristic if no explicit dissector was found */ if(! exres) { - try_heuristic_giop_dissector(tvb,pinfo,clnp_tree,&offset,header,entry->operation); + exres = try_heuristic_giop_dissector(tvb,pinfo,clnp_tree,&offset,header,entry->operation); } + if(! exres) { + gint stub_length = tvb_reported_length_remaining(tvb, offset); + proto_tree_add_text(tree, tvb, offset, -1, + "Stub data (%d byte%s)", stub_length, + plurality(stub_length, "", "s")); + } break; @@ -3410,6 +3416,12 @@ dissect_giop_request_1_1 (tvbuff_t * tvb, packet_info * pinfo, try_heuristic_giop_dissector(tvb,pinfo,tree,&offset,header,operation); } + if(! exres) { + gint stub_length = tvb_reported_length_remaining(tvb, offset); + proto_tree_add_text(request_tree, tvb, offset, -1, + "Stub data (%d byte%s)", stub_length, + plurality(stub_length, "", "s")); + } /* * We're done with operation, so we can call the cleanup handler to free @@ -3562,6 +3574,12 @@ dissect_giop_request_1_2 (tvbuff_t * tvb, packet_info * pinfo, try_heuristic_giop_dissector(tvb,pinfo,tree,&offset,header,operation); } + if(! exres) { + gint stub_length = tvb_reported_length_remaining(tvb, offset); + proto_tree_add_text(request_tree, tvb, offset, -1, + "Stub data (%d byte%s)", stub_length, + plurality(stub_length, "", "s")); + } /* * We're done with operation, so we can call the cleanup handler to free |