diff --git a/include/fastdds/rtps/participant/RTPSParticipant.h b/include/fastdds/rtps/participant/RTPSParticipant.h index 4918f9fbcde..1b3a19abd56 100644 --- a/include/fastdds/rtps/participant/RTPSParticipant.h +++ b/include/fastdds/rtps/participant/RTPSParticipant.h @@ -300,9 +300,11 @@ class RTPS_DllAPI RTPSParticipant const GUID_t& reader_guid); /** - * Returns registered transports' netmask filter information (transport's netmask filter kind and allowlist). + * @brief Returns registered transports' netmask filter information (transport's netmask filter kind and allowlist). + * + * @return A vector with all registered transports' netmask filter information. */ - std::vector netmask_filter_info() const; + std::vector get_netmask_filter_info() const; #if HAVE_SECURITY diff --git a/src/cpp/fastdds/publisher/PublisherImpl.cpp b/src/cpp/fastdds/publisher/PublisherImpl.cpp index d39bcba66ff..27bffd155ff 100644 --- a/src/cpp/fastdds/publisher/PublisherImpl.cpp +++ b/src/cpp/fastdds/publisher/PublisherImpl.cpp @@ -243,10 +243,10 @@ DataWriter* PublisherImpl::create_datawriter( } // Check netmask filtering preconditions - if (nullptr != rtps_participant()) + if (nullptr != rtps_participant_) { std::vector netmask_filter_info = - rtps_participant()->netmask_filter_info(); + rtps_participant_->get_netmask_filter_info(); std::string error_msg; if (!fastdds::rtps::network::netmask_filter::check_preconditions(netmask_filter_info, qos.endpoint().ignore_non_matching_locators, diff --git a/src/cpp/fastdds/subscriber/SubscriberImpl.cpp b/src/cpp/fastdds/subscriber/SubscriberImpl.cpp index 3a4101f49f9..862f297314b 100644 --- a/src/cpp/fastdds/subscriber/SubscriberImpl.cpp +++ b/src/cpp/fastdds/subscriber/SubscriberImpl.cpp @@ -212,10 +212,10 @@ DataReader* SubscriberImpl::create_datareader( } // Check netmask filtering preconditions - if (nullptr != rtps_participant()) + if (nullptr != rtps_participant_) { std::vector netmask_filter_info = - rtps_participant()->netmask_filter_info(); + rtps_participant_->get_netmask_filter_info(); std::string error_msg; if (!fastdds::rtps::network::netmask_filter::check_preconditions(netmask_filter_info, qos.endpoint().ignore_non_matching_locators, diff --git a/src/cpp/rtps/participant/RTPSParticipant.cpp b/src/cpp/rtps/participant/RTPSParticipant.cpp index 7c0f91da455..f6a32273acb 100644 --- a/src/cpp/rtps/participant/RTPSParticipant.cpp +++ b/src/cpp/rtps/participant/RTPSParticipant.cpp @@ -196,9 +196,9 @@ bool RTPSParticipant::ignore_reader( return false; } -std::vector RTPSParticipant::netmask_filter_info() const +std::vector RTPSParticipant::get_netmask_filter_info() const { - return mp_impl->netmask_filter_info(); + return mp_impl->get_netmask_filter_info(); } #if HAVE_SECURITY diff --git a/src/cpp/rtps/participant/RTPSParticipantImpl.cpp b/src/cpp/rtps/participant/RTPSParticipantImpl.cpp index a0ace396a07..9eb751e21b2 100644 --- a/src/cpp/rtps/participant/RTPSParticipantImpl.cpp +++ b/src/cpp/rtps/participant/RTPSParticipantImpl.cpp @@ -2760,7 +2760,7 @@ bool RTPSParticipantImpl::ignore_reader( return false; } -std::vector RTPSParticipantImpl::netmask_filter_info() const +std::vector RTPSParticipantImpl::get_netmask_filter_info() const { return m_network_Factory.netmask_filter_info(); } diff --git a/src/cpp/rtps/participant/RTPSParticipantImpl.h b/src/cpp/rtps/participant/RTPSParticipantImpl.h index a844e16ae9a..dafda856d61 100644 --- a/src/cpp/rtps/participant/RTPSParticipantImpl.h +++ b/src/cpp/rtps/participant/RTPSParticipantImpl.h @@ -1104,7 +1104,7 @@ class RTPSParticipantImpl /** * Returns registered transports' netmask filter information (transport's netmask filter kind and allowlist). */ - std::vector netmask_filter_info() const; + std::vector get_netmask_filter_info() const; template static bool preprocess_endpoint_attributes( diff --git a/test/mock/rtps/RTPSParticipant/fastdds/rtps/participant/RTPSParticipant.h b/test/mock/rtps/RTPSParticipant/fastdds/rtps/participant/RTPSParticipant.h index 71a702aa83b..51817bddd94 100644 --- a/test/mock/rtps/RTPSParticipant/fastdds/rtps/participant/RTPSParticipant.h +++ b/test/mock/rtps/RTPSParticipant/fastdds/rtps/participant/RTPSParticipant.h @@ -219,7 +219,7 @@ class RTPS_DllAPI RTPSParticipant const ReaderQos& rqos, const fastdds::rtps::ContentFilterProperty* content_filter)); - std::vector netmask_filter_info() const + std::vector get_netmask_filter_info() const { return {}; }