diff options
author | Michael Mann <mmann78@netscape.net> | 2017-08-15 19:58:18 -0400 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2017-08-16 02:07:26 +0000 |
commit | 2f0bd7b1f1493c4805c172f2202598efc1f1c8c0 (patch) | |
tree | 4f8ae4ecd6f88dcbef6d964b936e8ebf9c124831 | |
parent | ff5280906cd6de3cd86bd9c5c63fe2aaf372aa70 (diff) |
UDP: Bugfix handling UDP checksum of 0.
Copy/pasteo made it "unverified", when it should have been labeled
"Not present"
Bug: 13955
Change-Id: If3b8dea276ae38ba8169762ed7ed8e764022b5d7
Reviewed-on: https://code.wireshark.org/review/23091
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
-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 fa6f2a2b60..7fc472be99 100644 --- a/epan/dissectors/packet-udp.c +++ b/epan/dissectors/packet-udp.c @@ -1005,7 +1005,7 @@ dissect(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint32 ip_proto) /* No checksum supplied in the packet. */ if (((ip_proto == IP_PROTO_UDP) && (pinfo->src.type == AT_IPv4)) || pinfo->flags.in_error_pkt) { proto_tree_add_checksum(udp_tree, tvb, offset + 6, hfi_udp_checksum.id, hfi_udp_checksum_status.id, &ei_udp_checksum_bad, - pinfo, 0, ENC_BIG_ENDIAN, PROTO_CHECKSUM_NO_FLAGS); + pinfo, 0, ENC_BIG_ENDIAN, PROTO_CHECKSUM_NOT_PRESENT); } else { item = proto_tree_add_uint_format_value(udp_tree, hfi_udp_checksum.id, tvb, offset + 6, 2, 0, "0 (Illegal)"); checksum_tree = proto_item_add_subtree(item, ett_udp_checksum); |