Skip to content

Commit

Permalink
Fix Multi-Routing-Managers in one Process (#603)
Browse files Browse the repository at this point in the history
Removing statics (singletons) enables to run
multiple routing Managers in one process.

Co-authored-by: Aram Khzarjyan <[email protected]>
Co-authored-by: Kamil Poleszczuk <[email protected]>
Signed-off-by: Gunnar Andersson <[email protected]>
  • Loading branch information
akhzarj and Kamil Poleszczuk committed Mar 21, 2024
1 parent 55284c5 commit 655b0a6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2752,11 +2752,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
Expand Down

0 comments on commit 655b0a6

Please sign in to comment.