From b53cd784e435928ff8582def726767e447108859 Mon Sep 17 00:00:00 2001 From: Reiner Hauser <Reiner.Hauser@cern.ch> Date: Thu, 31 Oct 2013 12:57:40 +0000 Subject: [PATCH] changes for new P1 network configuration --- src/NameService.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NameService.cxx b/src/NameService.cxx index b11f784..53cb773 100644 --- a/src/NameService.cxx +++ b/src/NameService.cxx @@ -77,7 +77,7 @@ namespace daq { auto addr4(addr.to_v4()); auto mask4(mask.to_v4()); - if(htonl(addr4.to_ulong() & mask4.to_ulong()) == (intf->network() & htonl(mask4.to_ulong()))) { + if(htonl(addr4.to_ulong() & mask4.to_ulong()) == (intf->address() & htonl(mask4.to_ulong()))) { info.Addresses.push_back(intf->address_string() + '/' + mask4.to_string()); } @@ -301,7 +301,7 @@ namespace daq { continue; } - if((intf->network() & htonl(mask.to_ulong())) == htonl(addr.to_ulong())) { + if((intf->address() & htonl(mask.to_ulong())) == htonl(addr.to_ulong())) { return boost::asio::ip::address::from_string(intf->address_string()); } } -- GitLab