OpenSDN source code
MacBinding Struct Reference

#include <route_ksync.h>

Public Types

typedef std::map< const MacAddress, PathPreferenceMacPreferenceMap
 
typedef std::pair< const MacAddress, PathPreferenceMacPreferencePair
 

Public Member Functions

 MacBinding (const MacBinding &mac_binding)
 
 MacBinding (const MacAddress &mac, const PathPreference &pref)
 
const MacAddressget_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 129 of file route_ksync.h.

Member Typedef Documentation

◆ MacPreferenceMap

Definition at line 131 of file route_ksync.h.

◆ MacPreferencePair

Definition at line 133 of file route_ksync.h.

Constructor & Destructor Documentation

◆ MacBinding() [1/2]

MacBinding::MacBinding ( const MacBinding mac_binding)
inline

Definition at line 135 of file route_ksync.h.

◆ MacBinding() [2/2]

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

Definition at line 138 of file route_ksync.h.

Member Function Documentation

◆ can_erase()

bool MacBinding::can_erase ( )
inline

Definition at line 159 of file route_ksync.h.

◆ get_mac()

const MacAddress& MacBinding::get_mac ( ) const
inline

Definition at line 142 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 155 of file route_ksync.h.

◆ set_mac()

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

Definition at line 166 of file route_ksync.h.

◆ WaitForTraffic()

bool MacBinding::WaitForTraffic ( ) const
inline

Definition at line 171 of file route_ksync.h.

Member Data Documentation

◆ mac_preference_map_

MacPreferenceMap MacBinding::mac_preference_map_
private

Definition at line 182 of file route_ksync.h.


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