22 #ifndef NETLINKMANAGER_H_
23 #define NETLINKMANAGER_H_
33 #include <netlink/cache.h>
68 netlinkcache(
int protocol);
69 virtual ~netlinkcache();
72 virtual
void down() throw (socket_exception);
74 virtual
int fd() const throw (socket_exception);
76 void add(const std::
string &cachename) throw (socket_exception);
77 struct nl_cache* get(const std::
string &cachename) const throw (socket_exception);
79 void receive() throw (socket_exception);
85 struct nl_cache_mngr *_mngr;
87 std::map<std::
string, struct nl_cache*> _caches;
90 ibrcommon::
Mutex _cache_mutex;
91 netlinkcache _route_cache;