iUpdate error handling of UDP Light Illegal Checksum value 0

* Adding PI_MALFORMED expert field for this case.
  * Adding an error string in COL_INFO.


svn path=/trunk/; revision=23598
This commit is contained in:
Sebastien Tandel 2007-11-26 14:30:40 +00:00
parent 4b395e9e56
commit 6c4f9f0479

View file

@ -301,6 +301,9 @@ dissect(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint32 ip_proto)
} else {
item = proto_tree_add_uint_format(udp_tree, hf_udp_checksum, tvb, offset + 6, 2, 0,
"Checksum: 0x%04x (Illegal)", 0);
expert_add_info_format(pinfo, item, PI_MALFORMED, PI_ERROR, "Illegal Checksum value (0)");
if (check_col(pinfo->cinfo, COL_INFO))
col_append_fstr(pinfo->cinfo, COL_INFO, " [ILLEGAL CHECKSUM (0)]");
checksum_tree = proto_item_add_subtree(item, ett_udp_checksum);
proto_tree_add_boolean(checksum_tree, hf_udp_checksum_good, tvb,