Project

General

Profile

Feature #1712 ยป hide-onl-emulab-control.patch

impl without option - Junxiao Shi, 06/29/2014 06:44 PM

View differences:

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);
}
    (1-1/1)