face: eliminate Transport::Packet wrapper type
Refs: #4843
Change-Id: I5977be55e8bdac33c989e3b8523fea764f304c37
diff --git a/daemon/face/ethernet-transport.hpp b/daemon/face/ethernet-transport.hpp
index 798b937..8258285 100644
--- a/daemon/face/ethernet-transport.hpp
+++ b/daemon/face/ethernet-transport.hpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
- * Copyright (c) 2014-2018, Regents of the University of California,
+ * Copyright (c) 2014-2019, Regents of the University of California,
* Arizona Board of Regents,
* Colorado State University,
* University Pierre & Marie Curie, Sorbonne University,
@@ -29,6 +29,7 @@
#include "ethernet-protocol.hpp"
#include "pcap-helper.hpp"
#include "transport.hpp"
+
#include <ndn-cxx/net/network-interface.hpp>
namespace nfd {
@@ -43,11 +44,7 @@
class Error : public std::runtime_error
{
public:
- explicit
- Error(const std::string& what)
- : std::runtime_error(what)
- {
- }
+ using std::runtime_error::runtime_error;
};
/**
@@ -84,7 +81,7 @@
handleNetifStateChange(ndn::net::InterfaceState netifState);
void
- doSend(Transport::Packet&& packet) final;
+ doSend(const Block& packet, const EndpointId& endpoint) final;
/**
* @brief Sends the specified TLV block on the network wrapped in an Ethernet frame