NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
null-face.cpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26 #include "null-face.hpp"
27 #include "generic-link-service.hpp"
28 #include "internal-transport.hpp"
29 
30 namespace nfd {
31 namespace face {
32 
33 // FIB could restrict creating a nexthop record toward non-local face in /localhost namespace.
34 // NullFace has scope=local to enable creating a "blackhole" FIB entry under /localhost.
35 
36 shared_ptr<Face>
37 makeNullFace(const FaceUri& uri)
38 {
39  return make_shared<Face>(make_unique<GenericLinkService>(),
40  make_unique<InternalForwarderTransport>(uri, uri, ndn::nfd::FACE_SCOPE_LOCAL));
41 }
42 
43 } // namespace face
44 } // namespace nfd
shared_ptr< Face > makeNullFace(const FaceUri &uri)
Definition: null-face.cpp:37
Copyright (c) 2011-2015 Regents of the University of California.
Definition: ndn-common.hpp:40
represents the underlying protocol and address used by a Face
Definition: face-uri.hpp:43