Refactor management protocol specific option types to ControlParameters Add control parameter field enforcement Add missing control response "success" message bodies Update fib management protocol response codes and behavior Merge local control header manager into face manager Refactor references of nfd::LocalControlHeaderFeature enum to ndn::nfd::LocalControlFeature Remove "control-header" privilege from default configuration refs: #1397, #1399, #1400 Change-Id: Id042daf00b3cee1f1c7fa38d2e4a4ff6d95c15c6
42 lines
628 B
C++
42 lines
628 B
C++
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
|
|
/**
|
|
* Copyright (C) 2014 Named Data Networking Project
|
|
* See COPYING for copyright and distribution information.
|
|
*/
|
|
|
|
#include "fib-nexthop.hpp"
|
|
|
|
namespace nfd {
|
|
namespace fib {
|
|
|
|
NextHop::NextHop(shared_ptr<Face> face)
|
|
: m_face(face), m_cost(0)
|
|
{
|
|
}
|
|
|
|
NextHop::NextHop(const NextHop& other)
|
|
: m_face(other.m_face), m_cost(other.m_cost)
|
|
{
|
|
}
|
|
|
|
shared_ptr<Face>
|
|
NextHop::getFace() const
|
|
{
|
|
return m_face;
|
|
}
|
|
|
|
void
|
|
NextHop::setCost(uint64_t cost)
|
|
{
|
|
m_cost = cost;
|
|
}
|
|
|
|
uint64_t
|
|
NextHop::getCost() const
|
|
{
|
|
return m_cost;
|
|
}
|
|
|
|
} // namespace fib
|
|
} // namespace nfd
|