summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLutz Bichler <Lutz.Bichler@bmw.de>2014-08-19 16:52:57 +0200
committerLutz Bichler <Lutz.Bichler@bmw.de>2014-08-19 16:52:57 +0200
commitd8f5569c6bc5e7efafe7c8217724a146a9f76025 (patch)
tree805ca5fa9dda5c9df2f19fb114767da817f3b195
parentb2b7c447cd74a167db01ca3fdd833a91eddb88cc (diff)
downloadvSomeIP-d8f5569c6bc5e7efafe7c8217724a146a9f76025.tar.gz
No need to send registered applications/services to routing manager as
it already knows them.
-rw-r--r--implementation/routing/src/routing_manager_stub.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/implementation/routing/src/routing_manager_stub.cpp b/implementation/routing/src/routing_manager_stub.cpp
index 31aeeeb..54efa1a 100644
--- a/implementation/routing/src/routing_manager_stub.cpp
+++ b/implementation/routing/src/routing_manager_stub.cpp
@@ -146,8 +146,7 @@ void routing_manager_stub::on_message(const byte_t *_data, length_t _size,
std::memcpy(&its_instance,
&_data[VSOMEIP_COMMAND_PAYLOAD_POS + 2],
sizeof(its_instance));
- host_->stop_offer_service(its_client, its_service,
- its_instance);
+ host_->stop_offer_service(its_client, its_service, its_instance);
on_stop_offer_service(its_client, its_service, its_instance);
break;
@@ -299,7 +298,8 @@ void routing_manager_stub::send_routing_info(client_t _client) {
void routing_manager_stub::broadcast_routing_info() {
for (auto& info : routing_info_) {
- send_routing_info(info.first);
+ if (info.first != host_->get_client())
+ send_routing_info(info.first);
}
}