ICMP: display C-Type when unknown object in extension
Change-Id: I465341919675783999f4b131a7485ef2f6b8059f Reviewed-on: https://code.wireshark.org/review/20583 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
parent
8271aa85ed
commit
fd9a595aed
|
@ -895,11 +895,13 @@ dissect_extensions(tvbuff_t * tvb, packet_info *pinfo, gint offset, proto_tree *
|
|||
break;
|
||||
} /* end switch class_num */
|
||||
|
||||
/* Skip the object header */
|
||||
offset += 4;
|
||||
|
||||
/* The switches couldn't decode the object */
|
||||
if (unknown_object == TRUE) {
|
||||
proto_tree_add_item(ext_object_tree, hf_icmp_ext_c_type, tvb, offset + 3, 1, ENC_BIG_ENDIAN);
|
||||
|
||||
/* Skip the object header */
|
||||
offset += 4;
|
||||
|
||||
proto_item_set_text(tf_object,
|
||||
"Unknown object (%d/%d)",
|
||||
class_num, c_type);
|
||||
|
|
Loading…
Reference in New Issue