blob: cd7c198bf772f754abf9ef4dafb4e60030fe0c70 [file] [log] [blame]
Spyridon Mastorakisb0b22412016-12-07 14:33:46 -08001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2/**
3 * Copyright (c) 2011-2016 Regents of the University of California.
4 *
5 * This file is part of ndnSIM. See AUTHORS for complete list of ndnSIM authors and
6 * contributors.
7 *
8 * ndnSIM is free software: you can redistribute it and/or modify it under the terms
9 * of the GNU General Public License as published by the Free Software Foundation,
10 * either version 3 of the License, or (at your option) any later version.
11 *
12 * ndnSIM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
13 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 * PURPOSE. See the GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along with
17 * ndnSIM, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
18 **/
19
20#include "module-helpers.hpp"
21
22namespace nfd {
23namespace fib {
24
25std::shared_ptr<Face>
26getFaceFromFibNextHop(const NextHop& nextHop)
27{
28 return nextHop.getFace().shared_from_this();
29}
30
31} // namespace fib
32} // namespace nfd