diff options
Diffstat (limited to 'host/lib/rfnoc')
-rw-r--r-- | host/lib/rfnoc/ctrlport_endpoint.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/host/lib/rfnoc/ctrlport_endpoint.cpp b/host/lib/rfnoc/ctrlport_endpoint.cpp index 93236940f..a618eaca2 100644 --- a/host/lib/rfnoc/ctrlport_endpoint.cpp +++ b/host/lib/rfnoc/ctrlport_endpoint.cpp @@ -263,7 +263,10 @@ public: UHD_LOG_ERROR( "CTRLEP", "Malformed async message request: Invalid opcode"); } else if (rx_ctrl.dst_port != _local_port) { - UHD_LOG_ERROR("CTRLEP", "Malformed async message request: Invalid port"); + UHD_LOG_ERROR("CTRLEP", + "Malformed async message request: Invalid port " + << rx_ctrl.dst_port << ", expected my local port " + << _local_port); } else if (rx_ctrl.data_vtr.empty()) { UHD_LOG_ERROR( "CTRLEP", "Malformed async message request: Invalid num_data"); @@ -291,6 +294,16 @@ public: } } + virtual uint16_t get_src_epid() const + { + return _my_epid; + } + + virtual uint16_t get_port_num() const + { + return _local_port; + } + private: //! Returns the length of the control payload in 32-bit words inline static size_t get_payload_size(const ctrl_payload& payload) |