31 #if defined HAVE_LIBNL || HAVE_LIBNL3
41 #if defined HAVE_LIBNL || HAVE_LIBNL3
52 static bool initialized =
false;
61 if (cb == NULL)
return;
64 std::set<LinkManager::EventCallback* > &ss = _listener[iface];
70 if (cb == NULL)
return;
73 std::set<LinkManager::EventCallback* > &ss = _listener[iface];
79 _listener.erase(iface);
85 if (cb == NULL)
return;
90 for (std::map<
vinterface, std::set<LinkManager::EventCallback* > >::iterator iter = _listener.begin(); iter != _listener.end(); ++iter)
92 std::set<LinkManager::EventCallback* > &ss = iter->second;
110 std::set<LinkManager::EventCallback* > &ss =
_listener[iface];
112 for (std::set<LinkManager::EventCallback* >::iterator iter = ss.begin(); iter != ss.end(); ++iter)
116 }
catch (
const std::exception&) { };