diff options
author | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2012-03-22 03:41:58 +0000 |
---|---|---|
committer | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2012-03-22 03:41:58 +0000 |
commit | 6d09f686dd8553b8324e1d1ec38438549153fcb3 (patch) | |
tree | 4ed52add63672506d70450ef8387922c9fd1f7fc /epan | |
parent | 6f4ab63e89991498c40e2c84e0d085a88aad752c (diff) |
If the checksum is 0, then only report "no checksum" for UDP/IPv4. This patch is from Jaap Keuter via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6232
svn path=/trunk/; revision=41734
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-udp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-udp.c b/epan/dissectors/packet-udp.c index 72bae85e2f..f7a391fbcf 100644 --- a/epan/dissectors/packet-udp.c +++ b/epan/dissectors/packet-udp.c @@ -418,7 +418,7 @@ dissect(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint32 ip_proto) len = tvb_length(tvb); if (udph->uh_sum == 0) { /* No checksum supplied in the packet. */ - if (ip_proto == IP_PROTO_UDP) { + if ((ip_proto == IP_PROTO_UDP) && (pinfo->src.type == AT_IPv4)) { item = proto_tree_add_uint_format(udp_tree, hf_udp_checksum, tvb, offset + 6, 2, 0, "Checksum: 0x%04x (none)", 0); |