From c8391561bf16bde475344593e7987bc45c94944e Mon Sep 17 00:00:00 2001 From: morriss Date: Wed, 20 Jun 2012 13:30:07 +0000 Subject: Use separate filters for the RTT found on a SACK and the RTT found on a DATA chunk: having them in both places is helpful when looking at the messages but having them separate is helpful when graphing the RTTs. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@43406 f5534014-38df-0310-8fa8-9805f1628bb7 --- epan/dissectors/packet-ascend.c | 48 ++++++++++++++++++++--------------------- 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'epan/dissectors/packet-ascend.c') diff --git a/epan/dissectors/packet-ascend.c b/epan/dissectors/packet-ascend.c index b9d7e480ab..9c9266df81 100644 --- a/epan/dissectors/packet-ascend.c +++ b/epan/dissectors/packet-ascend.c @@ -50,9 +50,9 @@ static dissector_handle_t ppp_hdlc_handle; static void dissect_ascend(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { - proto_tree *fh_tree; - proto_item *ti, *hidden_item; - union wtap_pseudo_header *pseudo_header = pinfo->pseudo_header; + proto_tree *fh_tree; + proto_item *ti, *hidden_item; + union wtap_pseudo_header *pseudo_header = pinfo->pseudo_header; /* load the top pane info. This should be overwritten by the next protocol in the stack */ @@ -77,24 +77,24 @@ dissect_ascend(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) layer (ie none) */ if(tree) { ti = proto_tree_add_protocol_format(tree, proto_ascend, tvb, 0, 0, - "Lucent/Ascend packet trace"); + "Lucent/Ascend packet trace"); fh_tree = proto_item_add_subtree(ti, ett_raw); proto_tree_add_uint(fh_tree, hf_link_type, tvb, 0, 0, - pseudo_header->ascend.type); + pseudo_header->ascend.type); if (pseudo_header->ascend.type == ASCEND_PFX_WDD) { proto_tree_add_string(fh_tree, hf_called_number, tvb, 0, 0, - pseudo_header->ascend.call_num); + pseudo_header->ascend.call_num); proto_tree_add_uint(fh_tree, hf_chunk, tvb, 0, 0, - pseudo_header->ascend.chunk); + pseudo_header->ascend.chunk); hidden_item = proto_tree_add_uint(fh_tree, hf_session_id, tvb, 0, 0, 0); - PROTO_ITEM_SET_HIDDEN(hidden_item); + PROTO_ITEM_SET_HIDDEN(hidden_item); } else { /* It's wandsession data */ proto_tree_add_string(fh_tree, hf_user_name, tvb, 0, 0, - pseudo_header->ascend.user); + pseudo_header->ascend.user); proto_tree_add_uint(fh_tree, hf_session_id, tvb, 0, 0, - pseudo_header->ascend.sess); + pseudo_header->ascend.sess); hidden_item = proto_tree_add_uint(fh_tree, hf_chunk, tvb, 0, 0, 0); - PROTO_ITEM_SET_HIDDEN(hidden_item); + PROTO_ITEM_SET_HIDDEN(hidden_item); } proto_tree_add_uint(fh_tree, hf_task, tvb, 0, 0, pseudo_header->ascend.task); } @@ -117,35 +117,35 @@ proto_register_ascend(void) { static hf_register_info hf[] = { { &hf_link_type, - { "Link type", "ascend.type", FT_UINT32, BASE_DEC, VALS(encaps_vals), 0x0, - NULL, HFILL }}, + { "Link type", "ascend.type", FT_UINT32, BASE_DEC, VALS(encaps_vals), 0x0, + NULL, HFILL }}, { &hf_session_id, - { "Session ID", "ascend.sess", FT_UINT32, BASE_DEC, NULL, 0x0, - NULL, HFILL }}, + { "Session ID", "ascend.sess", FT_UINT32, BASE_DEC, NULL, 0x0, + NULL, HFILL }}, { &hf_called_number, - { "Called number", "ascend.number", FT_STRING, BASE_NONE, NULL, 0x0, - NULL, HFILL }}, + { "Called number", "ascend.number", FT_STRING, BASE_NONE, NULL, 0x0, + NULL, HFILL }}, { &hf_chunk, - { "WDD Chunk", "ascend.chunk", FT_UINT32, BASE_HEX, NULL, 0x0, - NULL, HFILL }}, + { "WDD Chunk", "ascend.chunk", FT_UINT32, BASE_HEX, NULL, 0x0, + NULL, HFILL }}, { &hf_task, - { "Task", "ascend.task", FT_UINT32, BASE_HEX, NULL, 0x0, - NULL, HFILL }}, + { "Task", "ascend.task", FT_UINT32, BASE_HEX, NULL, 0x0, + NULL, HFILL }}, { &hf_user_name, - { "User name", "ascend.user", FT_STRING, BASE_NONE, NULL, 0x0, - NULL, HFILL }}, + { "User name", "ascend.user", FT_STRING, BASE_NONE, NULL, 0x0, + NULL, HFILL }}, }; static gint *ett[] = { &ett_raw, }; proto_ascend = proto_register_protocol("Lucent/Ascend debug output", - "Lucent/Ascend", "ascend"); + "Lucent/Ascend", "ascend"); proto_register_field_array(proto_ascend, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); } -- cgit v1.2.3