22 #ifndef NETLINKMANAGER_H_
23 #define NETLINKMANAGER_H_
33 #include <netlink/netlink.h>
34 #include <netlink/cache.h>
69 netlinkcache(
int protocol);
70 virtual ~netlinkcache();
73 virtual
void down() throw (socket_exception);
75 virtual
int fd() const throw (socket_exception);
77 void add(const std::
string &cachename) throw (socket_exception);
78 struct nl_cache* get(const std::
string &cachename) const throw (socket_exception);
80 void receive() throw (socket_exception);
86 struct nl_cache_mngr *_mngr;
88 std::map<std::
string, struct nl_cache*> _caches;
91 ibrcommon::
Mutex _cache_mutex;
92 netlinkcache _route_cache;