NFD: Named Data Networking Forwarding Daemon 0.7.1 documentation
fib-update.cpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26
#include "
fib-update.hpp
"
27
28
namespace
nfd
{
29
namespace
rib {
30
31
FibUpdate
32
FibUpdate::createAddUpdate
(
const
Name& name,
const
uint64_t faceId,
const
uint64_t cost)
33
{
34
FibUpdate
update;
35
36
update.
name
=
name
;
37
update.
faceId
=
faceId
;
38
update.
cost
=
cost
;
39
update.
action
=
ADD_NEXTHOP
;
40
41
return
update;
42
}
43
44
FibUpdate
45
FibUpdate::createRemoveUpdate
(
const
Name&
name
,
const
uint64_t
faceId
)
46
{
47
FibUpdate
update;
48
49
update.
name
=
name
;
50
update.
faceId
=
faceId
;
51
update.
action
=
REMOVE_NEXTHOP
;
52
53
return
update;
54
}
55
56
}
// namespace rib
57
}
// namespace nfd
nfd::rib::FibUpdate::ADD_NEXTHOP
Definition:
fib-update.hpp:62
nfd::rib::FibUpdate::cost
uint64_t cost
Definition:
fib-update.hpp:69
nfd::rib::FibUpdate::name
Name name
Definition:
fib-update.hpp:67
nfd::rib::FibUpdate::faceId
uint64_t faceId
Definition:
fib-update.hpp:68
nfd::rib::FibUpdate::createAddUpdate
static FibUpdate createAddUpdate(const Name &name, const uint64_t faceId, const uint64_t cost)
Definition:
fib-update.cpp:32
nfd
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
Definition:
algorithm.hpp:32
nfd::rib::FibUpdate::action
Action action
Definition:
fib-update.hpp:70
fib-update.hpp
nfd::rib::FibUpdate
represents a FIB update
Definition:
fib-update.hpp:37
nfd::rib::FibUpdate::REMOVE_NEXTHOP
Definition:
fib-update.hpp:63
nfd::rib::FibUpdate::createRemoveUpdate
static FibUpdate createRemoveUpdate(const Name &name, const uint64_t faceId)
Definition:
fib-update.cpp:45
daemon
rib
fib-update.cpp
Generated on Thu Oct 8 2020 17:06:00 for NFD: Named Data Networking Forwarding Daemon by
1.8.13