NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
represents a FIB update
Definition:
fib-update.hpp:37
nfd::rib::FibUpdate::createRemoveUpdate
static FibUpdate createRemoveUpdate(const Name &name, const uint64_t faceId)
Definition:
fib-update.cpp:45
nfd::rib::FibUpdate::REMOVE_NEXTHOP
Definition:
fib-update.hpp:63
nfd::rib::FibUpdate::faceId
uint64_t faceId
Definition:
fib-update.hpp:68
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:40
nfd::rib::FibUpdate::createAddUpdate
static FibUpdate createAddUpdate(const Name &name, const uint64_t faceId, const uint64_t cost)
Definition:
fib-update.cpp:32
ndn::Name
Represents an absolute name.
Definition:
name.hpp:42
fib-update.hpp
nfd::rib::FibUpdate::name
Name name
Definition:
fib-update.hpp:67
nfd::rib::FibUpdate::action
Action action
Definition:
fib-update.hpp:70
nfd::rib::FibUpdate::cost
uint64_t cost
Definition:
fib-update.hpp:69
ndn::name
Definition:
name-component.cpp:37
ndnSIM
NFD
rib
fib-update.cpp
Generated on Thu Nov 2 2017 03:30:29 for ndnSIM by
1.8.11