summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMingzhoutang <Mingzhou_Tang@human-horizons.com>2021-05-13 11:09:34 +0800
committerMingzhoutang <Mingzhou_Tang@human-horizons.com>2021-05-13 11:09:34 +0800
commitafbf15136d3bd2c407390e9f3fa93adfa183bd2b (patch)
treec46712846dc436ef9efd94fb2f79c327de1aac8c
parent13f9c89ced6ffaeb1faf485152e27e1f40d234cd (diff)
downloadvSomeIP-afbf15136d3bd2c407390e9f3fa93adfa183bd2b.tar.gz
fix for bug #239, as one process use two stubs for different vlans
-rw-r--r--implementation/service_discovery/src/service_discovery_impl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/implementation/service_discovery/src/service_discovery_impl.cpp b/implementation/service_discovery/src/service_discovery_impl.cpp
index b252e62..16f0fad 100644
--- a/implementation/service_discovery/src/service_discovery_impl.cpp
+++ b/implementation/service_discovery/src/service_discovery_impl.cpp
@@ -2610,11 +2610,11 @@ service_discovery_impl::check_ipv4_address(
//Check unallowed ipv4 address
bool is_valid = true;
- static const boost::asio::ip::address_v4::bytes_type its_unicast_address =
+ const boost::asio::ip::address_v4::bytes_type its_unicast_address =
unicast_.to_v4().to_bytes();
const boost::asio::ip::address_v4::bytes_type endpoint_address =
its_address.to_v4().to_bytes();
- static const boost::asio::ip::address_v4::bytes_type its_netmask =
+ const boost::asio::ip::address_v4::bytes_type its_netmask =
configuration_->get_netmask().to_v4().to_bytes();
//same address as unicast address of DUT not allowed