6 #ifndef linux_vnsw_agent_router_id_h
7 #define linux_vnsw_agent_router_id_h
10 #include <boost/bind/bind.hpp>
11 #include <boost/function.hpp>
12 #include <boost/asio.hpp>
15 using namespace boost::placeholders;
17 namespace local = boost::asio::local;
26 friend class TestVnswIf;
29 virtual void SyncCurrentState();
30 virtual void RegisterAsyncReadHandler();
31 void ReadHandler(
const boost::system::error_code &, std::size_t length);
32 void UpdateLinkLocalRoute(
const Ip4Address &addr, uint8_t plen,
bool del_rt);
35 void InitNetlinkScan(uint32_t
type, uint32_t seqno);
36 int NlMsgDecode(
struct nlmsghdr *nl, std::size_t len, uint32_t seq_no);
39 int AddAttr(uint8_t *,
int ,
void *,
int );
40 string NetlinkTypeToString(uint32_t);
41 Event *HandleNetlinkRouteMsg(
struct nlmsghdr *);
42 Event *HandleNetlinkIntfMsg(
struct nlmsghdr *);
43 Event *HandleNetlinkAddrMsg(
struct nlmsghdr *);
boost::asio::ip::address_v4 Ip4Address
DISALLOW_COPY_AND_ASSIGN(VnswInterfaceListenerLinux)
bool ProcessEvent(Event *re)
VnswInterfaceListenerLinux VnswInterfaceListener