OpenSDN source code
MacBinding Struct Reference

#include <route_ksync.h>

Public Types

typedef std::map< const MacAddress, PathPreference > MacPreferenceMap
 
typedef std::pair< const MacAddress, PathPreference > MacPreferencePair
 

Public Member Functions

 MacBinding (const MacBinding &mac_binding)
 
 MacBinding (const MacAddress &mac, const PathPreference &pref)
 
const MacAddress & get_mac () const
 
void reset_mac (const MacAddress &mac)
 
bool can_erase ()
 
void set_mac (const PathPreference &pref, const MacAddress &mac)
 
bool WaitForTraffic () const
 

Private Attributes

MacPreferenceMap mac_preference_map_
 

Detailed Description

Definition at line 132 of file route_ksync.h.

Member Typedef Documentation

◆ MacPreferenceMap

Definition at line 134 of file route_ksync.h.

◆ MacPreferencePair

Definition at line 136 of file route_ksync.h.

Constructor & Destructor Documentation

◆ MacBinding() [1/2]

MacBinding::MacBinding ( const MacBinding &  mac_binding)
inline

Definition at line 138 of file route_ksync.h.

◆ MacBinding() [2/2]

MacBinding::MacBinding ( const MacAddress &  mac,
const PathPreference &  pref 
)
inline

Definition at line 141 of file route_ksync.h.

Member Function Documentation

◆ can_erase()

bool MacBinding::can_erase ( )
inline

Definition at line 162 of file route_ksync.h.

◆ get_mac()

const MacAddress& MacBinding::get_mac ( ) const
inline

Definition at line 145 of file route_ksync.h.

Here is the call graph for this function:

◆ reset_mac()

void MacBinding::reset_mac ( const MacAddress &  mac)
inline

Definition at line 158 of file route_ksync.h.

◆ set_mac()

void MacBinding::set_mac ( const PathPreference &  pref,
const MacAddress &  mac 
)
inline

Definition at line 169 of file route_ksync.h.

◆ WaitForTraffic()

bool MacBinding::WaitForTraffic ( ) const
inline

Definition at line 174 of file route_ksync.h.

Member Data Documentation

◆ mac_preference_map_

MacPreferenceMap MacBinding::mac_preference_map_
private

Definition at line 185 of file route_ksync.h.


The documentation for this struct was generated from the following file: