x300: Respect X300_FW_COMMS_FLAGS_ARP_FAIL flag

In firmware version 6.1, this flag was introduced to indicate a failed
ARP lookup.
This commit is contained in:
Martin Braun 2022-07-11 17:15:04 +02:00 committed by michael-west
parent 89fb75288e
commit 6d843a2e78

View File

@ -134,6 +134,10 @@ protected:
UHD_ASSERT_THROW(reply.sequence == request.sequence);
UHD_ASSERT_THROW(reply.addr == request.addr);
UHD_ASSERT_THROW(reply.data == request.data);
if (flags & X300_FW_COMMS_FLAGS_ARP_FAIL) {
throw uhd::lookup_error("Device failed to look up IP address.");
}
}
uint32_t __peek32(const wb_addr_type addr) override