diff options
-rw-r--r-- | epan/dissectors/packet-ipv6.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/epan/dissectors/packet-ipv6.c b/epan/dissectors/packet-ipv6.c index fa9fbc6b55..a2a4b301e2 100644 --- a/epan/dissectors/packet-ipv6.c +++ b/epan/dissectors/packet-ipv6.c @@ -1244,7 +1244,7 @@ dissect_routing6(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data static int dissect_fraghdr(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) { - proto_item *pi; + proto_item *pi, *ti; proto_tree *frag_tree, *root_tree; guint8 nxt; guint16 offlg; @@ -1288,7 +1288,8 @@ dissect_fraghdr(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) proto_tree_add_item(frag_tree, hf_ipv6_fraghdr_reserved_octet, tvb, offset, 1, ENC_BIG_ENDIAN); offset += 1; - proto_tree_add_item(frag_tree, hf_ipv6_fraghdr_offset, tvb, offset, 2, ENC_BIG_ENDIAN); + ti = proto_tree_add_item(frag_tree, hf_ipv6_fraghdr_offset, tvb, offset, 2, ENC_BIG_ENDIAN); + proto_item_append_text(ti, " (%d bytes)", frag_off); proto_tree_add_item(frag_tree, hf_ipv6_fraghdr_reserved_bits, tvb, offset, 2, ENC_BIG_ENDIAN); @@ -3271,7 +3272,7 @@ proto_register_ipv6(void) }, { &hf_ipv6_fraghdr_offset, { "Offset", "ipv6.fraghdr.offset", - FT_UINT16, BASE_DEC|BASE_UNIT_STRING, &units_byte_bytes, IP6F_OFF_MASK, + FT_UINT16, BASE_DEC, NULL, IP6F_OFF_MASK, "Fragment Offset", HFILL } }, { &hf_ipv6_fraghdr_reserved_bits, |