diff options
author | AndersBroman <anders.broman@ericsson.com> | 2014-04-10 10:00:16 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2014-04-10 08:06:42 +0000 |
commit | 9ed6b19f786f16e2bbfc8218402eb1a97627af63 (patch) | |
tree | 8bbf5768f658300ef916de6e25bfe96f11a51286 /epan | |
parent | 98df3ce91f45952538781f861c9444fbc5bd6617 (diff) |
Add a hint in the protocol tree.
Change-Id: Id565b153e322599430218eb6f7a542e2dd763458
Reviewed-on: https://code.wireshark.org/review/1055
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-vrrp.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/epan/dissectors/packet-vrrp.c b/epan/dissectors/packet-vrrp.c index f09bef926f..898954ea1f 100644 --- a/epan/dissectors/packet-vrrp.c +++ b/epan/dissectors/packet-vrrp.c @@ -209,7 +209,11 @@ dissect_vrrp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_ } else { hidden_item = proto_tree_add_boolean(vrrp_tree, hf_vrrp_checksum_bad, tvb, offset, 2, TRUE); PROTO_ITEM_SET_HIDDEN(hidden_item); - proto_item_append_text(checksum_item, " [incorrect, should be 0x%04x]", in_cksum_shouldbe(cksum, computed_cksum)); + if(hi_nibble(ver_type)==3){ + proto_item_append_text(checksum_item, " [incorrect, should be 0x%04x(check preferences)]", in_cksum_shouldbe(cksum, computed_cksum)); + }else{ + proto_item_append_text(checksum_item, " [incorrect, should be 0x%04x]", in_cksum_shouldbe(cksum, computed_cksum)); + } expert_add_info_format(pinfo, checksum_item, &ei_vrrp_checksum, "VRRP Checksum Incorrect, should be 0x%04x", in_cksum_shouldbe(cksum, computed_cksum)); } |