summaryrefslogtreecommitdiffstats
path: root/host/lib/transport
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-05-16 11:58:03 -0700
committerJosh Blum <josh@joshknows.com>2011-05-16 11:58:03 -0700
commit13be023531fa1be8d43b999c3ea5ab477f101fdc (patch)
tree9a24a949aa0d30b9a992d89c232ae1b812b3c09f /host/lib/transport
parente6e010e02a12359a31e70ac7fe2ae7c39fa3e9d6 (diff)
parentc8565df0e51922443426a0392f5f1fb4e3743ce1 (diff)
downloaduhd-13be023531fa1be8d43b999c3ea5ab477f101fdc.tar.gz
uhd-13be023531fa1be8d43b999c3ea5ab477f101fdc.tar.bz2
uhd-13be023531fa1be8d43b999c3ea5ab477f101fdc.zip
Merge branch 'use_vita_length' into next
Diffstat (limited to 'host/lib/transport')
-rwxr-xr-xhost/lib/transport/gen_vrt_if_packet.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/host/lib/transport/gen_vrt_if_packet.py b/host/lib/transport/gen_vrt_if_packet.py
index 8481932ed..7df2092d8 100755
--- a/host/lib/transport/gen_vrt_if_packet.py
+++ b/host/lib/transport/gen_vrt_if_packet.py
@@ -152,17 +152,11 @@ void vrt::if_hdr_unpack_$(suffix)(
){
//extract vrt header
boost::uint32_t vrt_hdr_word = $(XE_MACRO)(packet_buff[0]);
- /*
size_t packet_words32 = vrt_hdr_word & 0xffff;
//failure case
if (if_packet_info.num_packet_words32 < packet_words32)
throw uhd::value_error("bad vrt header or packet fragment");
- */
- //Fix for short packets sent from the fpga:
- // Use the num_packet_words32 passed in as input,
- // and do not use the header bits which could be wrong.
- size_t packet_words32 = if_packet_info.num_packet_words32;
//extract fields from the header
if_packet_info.packet_type = if_packet_info_t::packet_type_t(vrt_hdr_word >> 29);