nfd::rib::FibUpdate Class Reference

Represents a FIB update. More...

#include <daemon/rib/fib-update.hpp>

+ Inheritance diagram for nfd::rib::FibUpdate:
+ Collaboration diagram for nfd::rib::FibUpdate:

Public Types

enum  Action {
  ADD_NEXTHOP = 0 ,
  REMOVE_NEXTHOP = 1
}
 

Static Public Member Functions

static FibUpdate createAddUpdate (const Name &name, uint64_t faceId, uint64_t cost)
 
static FibUpdate createRemoveUpdate (const Name &name, uint64_t faceId)
 

Public Attributes

Action action
 
uint64_t cost = 0
 
uint64_t faceId = 0
 
Name name
 

Friends

bool operator== (const FibUpdate &lhs, const FibUpdate &rhs) noexcept
 

Detailed Description

Represents a FIB update.

Definition at line 38 of file fib-update.hpp.

Member Enumeration Documentation

◆ Action

Enumerator
ADD_NEXTHOP 
REMOVE_NEXTHOP 

Definition at line 41 of file fib-update.hpp.

Member Function Documentation

◆ createAddUpdate()

FibUpdate nfd::rib::FibUpdate::createAddUpdate ( const Name &  name,
uint64_t  faceId,
uint64_t  cost 
)
static

Definition at line 31 of file fib-update.cpp.

◆ createRemoveUpdate()

FibUpdate nfd::rib::FibUpdate::createRemoveUpdate ( const Name &  name,
uint64_t  faceId 
)
static

Definition at line 42 of file fib-update.cpp.

Friends And Related Function Documentation

◆ operator==

bool operator== ( const FibUpdate lhs,
const FibUpdate rhs 
)
friend

Definition at line 54 of file fib-update.hpp.

Member Data Documentation

◆ action

Action nfd::rib::FibUpdate::action

Definition at line 66 of file fib-update.hpp.

◆ cost

uint64_t nfd::rib::FibUpdate::cost = 0

Definition at line 65 of file fib-update.hpp.

◆ faceId

uint64_t nfd::rib::FibUpdate::faceId = 0

Definition at line 64 of file fib-update.hpp.

◆ name

Name nfd::rib::FibUpdate::name

Definition at line 63 of file fib-update.hpp.