From 54a859da26cccd63f5c38b6ee3f47ad1448f4e62 Mon Sep 17 00:00:00 2001 From: DanielMcLean Date: Tue, 1 May 2018 17:38:19 +0000 Subject: [PATCH] Remove vrt offset hack This offset hack breaks VITA 49 standard. Please remove the hack so that wireshark adheres to the standard. Without the knowledge that this hack is here developers will assume that there is a problem on their end. --- epan/dissectors/packet-vrt.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/epan/dissectors/packet-vrt.c b/epan/dissectors/packet-vrt.c index 215b9e29a..dee1bc90a 100644 --- a/epan/dissectors/packet-vrt.c +++ b/epan/dissectors/packet-vrt.c @@ -178,9 +178,6 @@ static void dissect_vrt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) col_set_str(pinfo->cinfo, COL_PROTOCOL, "VITA 49"); col_clear(pinfo->cinfo,COL_INFO); - /* HACK to support UHD's weird header offset on data packets. */ - if (tvb_get_guint8(tvb, 0) == 0) offset += 4; - /* get packet type */ type = tvb_get_guint8(tvb, offset) >> 4; col_add_str(pinfo->cinfo, COL_INFO, val_to_str(type, packet_types, "Reserved packet type (0x%02x)"));