Hi, Some tiddly changes: pppoe- don't create an empty discovery tags tree when the payload length is 0 chap- make chap.value work as a filterable field rtcp- append the packet type to the protocol tree name
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16712
f5534014-38df-0310-8fa8-
9805f1628bb7
&hf_chap_value,
{
"Value", "chap.value",
- FT_BYTES, BASE_HEX,
+ FT_BYTES, BASE_NONE,
NULL, 0x0,
"CHAP value data", HFILL
}
{
&hf_chap_name,
{
- "Name", "chap.value",
+ "Name", "chap.name",
FT_STRING, BASE_NONE,
NULL, 0x0,
"CHAP name", HFILL
proto_tree_add_item(pppoe_tree, hf_pppoe_payload_length, tvb, 4, 2, FALSE);
}
- /* Now dissect tags */
- dissect_pppoe_tags(tvb, pinfo, 6, tree, 6+pppoe_length);
+ /* Now dissect any tags */
+ if (pppoe_length > 0)
+ {
+ dissect_pppoe_tags(tvb, pinfo, 6, tree, 6+pppoe_length);
+ }
}
packet_length = ( tvb_get_ntohs( tvb, offset + 2 ) + 1 ) * 4;
ti = proto_tree_add_item(tree, proto_rtcp, tvb, offset, packet_length, FALSE );
+ proto_item_append_text(ti, " (%s)",
+ val_to_str(packet_type,
+ rtcp_packet_type_vals,
+ "Unknown"));
+
rtcp_tree = proto_item_add_subtree( ti, ett_rtcp );
/* Conversation setup info */