aboutsummaryrefslogtreecommitdiffstats
path: root/host/tests/rx_streamer_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/tests/rx_streamer_test.cpp')
-rw-r--r--host/tests/rx_streamer_test.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/host/tests/rx_streamer_test.cpp b/host/tests/rx_streamer_test.cpp
index 03ab3f456..a2969d608 100644
--- a/host/tests/rx_streamer_test.cpp
+++ b/host/tests/rx_streamer_test.cpp
@@ -95,9 +95,19 @@ public:
_recv_link->release_recv_buff(std::move(buff));
}
+ size_t get_mtu() const
+ {
+ return _recv_link->get_recv_frame_size();
+ }
+
+ size_t get_chdr_hdr_len() const
+ {
+ return sizeof(mock_header_t);
+ }
+
size_t get_max_payload_size() const
{
- return _recv_link->get_recv_frame_size() - sizeof(packet_info_t);
+ return get_mtu() - get_chdr_hdr_len();
}
private: