diff options
author | Lutz Bichler <Lutz.Bichler@bmw.de> | 2014-08-19 16:52:57 +0200 |
---|---|---|
committer | Lutz Bichler <Lutz.Bichler@bmw.de> | 2014-08-19 16:52:57 +0200 |
commit | d8f5569c6bc5e7efafe7c8217724a146a9f76025 (patch) | |
tree | 805ca5fa9dda5c9df2f19fb114767da817f3b195 | |
parent | b2b7c447cd74a167db01ca3fdd833a91eddb88cc (diff) | |
download | vSomeIP-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.cpp | 6 |
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); } } |