diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-04-29 16:57:46 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-04-29 16:57:46 -0700 |
commit | 781a20a48ea2a82d89258a8e20d89dcc4f90ea07 (patch) | |
tree | 3c4b9523de8a509a16babc190b2ea5e16533b1ac /watchlink/netlink_linkstatus.hh | |
parent | 4a30f6fe0f0b692e9d1f1d1678b9c2bd0e3afe7f (diff) | |
parent | a8726835c9064a1f2c6a261b14c637950abdd2bc (diff) | |
download | quagga-781a20a48ea2a82d89258a8e20d89dcc4f90ea07.tar.bz2 quagga-781a20a48ea2a82d89258a8e20d89dcc4f90ea07.tar.xz |
Merge branch 'hollister' into hollywood
Diffstat (limited to 'watchlink/netlink_linkstatus.hh')
-rw-r--r-- | watchlink/netlink_linkstatus.hh | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/watchlink/netlink_linkstatus.hh b/watchlink/netlink_linkstatus.hh deleted file mode 100644 index b4eebbce..00000000 --- a/watchlink/netlink_linkstatus.hh +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Module: netlink_linkstatus.hh - * - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License version 2 as published - * by the Free Software Foundation. - */ -#ifndef __NETLINK_LINKSTATUS_HH__ -#define __NETLINK_LINKSTATUS_HH__ - -#include <string> -#include <map> -#include "netlink_event.hh" -#include "netlink_send.hh" - -class NetlinkLinkStatus -{ -public: - typedef std::map<int,bool> IfaceStateColl; - typedef std::map<int,bool>::iterator IfaceStateIter; - -public: - NetlinkLinkStatus(int send_sock, const std::string &link_dir, bool debug); - ~NetlinkLinkStatus(); - - void - process(const NetlinkEvent &event); - -private: - int - process_up(const NetlinkEvent &event); - - int - process_down(const NetlinkEvent &event); - - int - process_going_up(const NetlinkEvent &event); - - int - process_going_down(const NetlinkEvent &event); - - -private: - NetlinkSend _nl_send; - int _send_sock; - std::string _link_dir; - bool _debug; - - //keeps track of down messages where we've issued a - //request for addresses but haven't received msg yet. - IfaceStateColl _iface_state_coll; - -}; - -#endif //__NETLINK_LINKSTATUS_HH__ |