Added expert info for length issues.

svn path=/trunk/; revision=22648
This commit is contained in:
Stig Bjørlykke 2007-08-24 23:27:33 +00:00
parent 1a03093490
commit d2bc64938c
1 changed files with 4 additions and 0 deletions

View File

@ -532,8 +532,12 @@ static void dissect_p_mul (tvbuff_t *tvb, packet_info *pinfo _U_,
if (pdu_length != (offset + data_len)) {
proto_item_append_text (len_en, " (incorrect, should be: %d)",
offset + data_len);
expert_add_info_format (pinfo, len_en, PI_MALFORMED, PI_WARN,
"Incorrect length field");
} else if ((len = tvb_length_remaining (tvb, pdu_length)) > 0) {
proto_item_append_text (len_en, " (more data in packet: %d)", len);
expert_add_info_format (pinfo, len_en, PI_MALFORMED, PI_WARN,
"More data in packet");
}
}