diff options
author | lutzbichler <52852266+lutzbichler@users.noreply.github.com> | 2022-03-15 07:14:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-15 07:14:30 +0100 |
commit | cd170ace4d93cae0a550b44af744c7f9dd7d0f14 (patch) | |
tree | 7c28b466a718a37455594324c57ee64d9b94d241 | |
parent | 94b613049eae865266c4d636619d157fcf83d78d (diff) | |
parent | 1602e34b0af280c91972b4942260fc26e818473c (diff) | |
download | vSomeIP-cd170ace4d93cae0a550b44af744c7f9dd7d0f14.tar.gz |
Merge pull request #316 from LccGitHub/tc8-dev
Fix for issu #315: TC8 test case SOMEIPSRV_RPC_07 to passed
-rw-r--r-- | implementation/endpoints/src/udp_server_endpoint_impl.cpp | 2 | ||||
-rw-r--r-- | implementation/service_discovery/src/service_discovery_impl.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/implementation/endpoints/src/udp_server_endpoint_impl.cpp b/implementation/endpoints/src/udp_server_endpoint_impl.cpp index 4cd6a71..7aadf3f 100644 --- a/implementation/endpoints/src/udp_server_endpoint_impl.cpp +++ b/implementation/endpoints/src/udp_server_endpoint_impl.cpp @@ -574,7 +574,7 @@ void udp_server_endpoint_impl::on_message_received( } else if (current_message_size > VSOMEIP_RETURN_CODE_POS && (_buffer[i + VSOMEIP_PROTOCOL_VERSION_POS] != VSOMEIP_PROTOCOL_VERSION || !utility::is_valid_message_type(tp::tp::tp_flag_unset(_buffer[i + VSOMEIP_MESSAGE_TYPE_POS])) || - !utility::is_valid_return_code(static_cast<return_code_e>(_buffer[i + VSOMEIP_RETURN_CODE_POS])) || + /*!utility::is_valid_return_code(static_cast<return_code_e>(_buffer[i + VSOMEIP_RETURN_CODE_POS])) ||*/ (tp::tp::tp_flag_is_set(_buffer[i + VSOMEIP_MESSAGE_TYPE_POS]) && get_local_port() == configuration_->get_sd_port()) )) { if (_buffer[i + VSOMEIP_PROTOCOL_VERSION_POS] != VSOMEIP_PROTOCOL_VERSION) { diff --git a/implementation/service_discovery/src/service_discovery_impl.cpp b/implementation/service_discovery/src/service_discovery_impl.cpp index 1f5dc07..0fc6190 100644 --- a/implementation/service_discovery/src/service_discovery_impl.cpp +++ b/implementation/service_discovery/src/service_discovery_impl.cpp @@ -974,7 +974,7 @@ service_discovery_impl::send(bool _is_announcing) { std::lock_guard<std::mutex> its_lock(offer_mutex_); services_t its_offers = host_->get_offered_services(); - insert_offer_entries(its_messages, its_offers, false); + insert_offer_entries(its_messages, its_offers, true); // Serialize and send return send(its_messages); |