Feature #1712 ยป hide-onl-emulab-control.patch
core/network-interface.cpp | ||
---|---|---|
std::list< shared_ptr<NetworkInterfaceInfo> > list;
|
||
BOOST_FOREACH(InterfacesMap::value_type elem, ifmap) {
|
||
if (elem.second->name == "control") {
|
||
// ONL control NIC
|
||
continue;
|
||
}
|
||
if (!elem.second->ipv4Addresses.empty() &&
|
||
(elem.second->ipv4Addresses[0].to_ulong() & 0xFFFF0000U) == 0x9B620000U) {
|
||
// Emulab control NIC, 155.98.0.0/16
|
||
continue;
|
||
}
|
||
list.push_back(elem.second);
|
||
}
|
||