Skip to content
Snippets Groups Projects
Commit b53cd784 authored by Reiner Hauser's avatar Reiner Hauser
Browse files

changes for new P1 network configuration

parent 1384546a
No related branches found
No related tags found
No related merge requests found
......@@ -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());
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment