Implementation of layer-2 (Ethernet) LinkService (current hack, to be changed eventually) More...
#include <ndn-net-device-link-service.hpp>
Public Member Functions | |
NetDeviceLinkService (Ptr< Node > node, const Ptr< NetDevice > &netDevice) | |
Constructor. More... | |
virtual | ~NetDeviceLinkService () |
Ptr< Node > | GetNode () const |
Get Node associated with the LinkService. More... | |
Ptr< NetDevice > | GetNetDevice () const |
Get NetDevice associated with the LinkService. More... | |
Public Member Functions inherited from nfd::face::LinkService | |
LinkService () | |
virtual | ~LinkService () |
void | setFaceAndTransport (Face &face, Transport &transport) |
set Face and Transport for LinkService More... | |
const Face * | getFace () const |
const Transport * | getTransport () const |
Transport * | getTransport () |
virtual const Counters & | getCounters () const |
void | sendInterest (const Interest &interest) |
send Interest More... | |
void | sendData (const Data &data) |
send Data More... | |
void | sendNack (const ndn::lp::Nack &nack) |
send Nack More... | |
void | receivePacket (Transport::Packet &&packet) |
performs LinkService specific operations to receive a lower-layer packet More... | |
Additional Inherited Members | |
Public Types inherited from nfd::face::LinkService | |
typedef LinkServiceCounters | Counters |
counters provided by LinkService More... | |
Public Attributes inherited from nfd::face::LinkService | |
signal::Signal< LinkService, Interest > | afterReceiveInterest |
signals on Interest received More... | |
signal::Signal< LinkService, Data > | afterReceiveData |
signals on Data received More... | |
signal::Signal< LinkService, lp::Nack > | afterReceiveNack |
signals on Nack received More... | |
signal::Signal< LinkService, Interest > | afterSendInterest |
signals on Interest sent More... | |
signal::Signal< LinkService, Data > | afterSendData |
signals on Data sent More... | |
signal::Signal< LinkService, lp::Nack > | afterSendNack |
signals on Nack sent More... | |
Protected Member Functions inherited from nfd::face::LinkService | |
void | receiveInterest (const Interest &interest) |
delivers received Interest to forwarding More... | |
void | receiveData (const Data &data) |
delivers received Data to forwarding More... | |
void | receiveNack (const lp::Nack &nack) |
delivers received Nack to forwarding More... | |
void | sendPacket (Transport::Packet &&packet) |
sends a lower-layer packet via Transport More... | |
Protected Attributes inherited from nfd::face::LinkServiceCounters | |
PacketCounter | nInInterests |
count of incoming Interests More... | |
PacketCounter | nOutInterests |
count of outgoing Interests More... | |
PacketCounter | nInData |
count of incoming Data More... | |
PacketCounter | nOutData |
count of outgoing Data More... | |
PacketCounter | nInNacks |
count of incoming Nacks More... | |
PacketCounter | nOutNacks |
count of outgoing Nacks More... | |
Implementation of layer-2 (Ethernet) LinkService (current hack, to be changed eventually)
NetDeviceLinkService is permanently associated with one NetDevice object and this object cannot be changed for the lifetime of the face
Definition at line 41 of file ndn-net-device-link-service.hpp.
ns3::ndn::NetDeviceLinkService::NetDeviceLinkService | ( | Ptr< Node > | node, |
const Ptr< NetDevice > & | netDevice | ||
) |
Constructor.
node | Node associated with the face |
netDevice | a smart pointer to NetDevice object to which this NetDeviceLinkService will be associate |
Definition at line 42 of file ndn-net-device-link-service.cpp.
References ns3::ndn::L3Protocol::ETHERNET_FRAME_TYPE.
|
virtual |
Definition at line 55 of file ndn-net-device-link-service.cpp.
Ptr< Node > ns3::ndn::NetDeviceLinkService::GetNode | ( | ) | const |
Get Node associated with the LinkService.
Definition at line 61 of file ndn-net-device-link-service.cpp.
Ptr< NetDevice > ns3::ndn::NetDeviceLinkService::GetNetDevice | ( | ) | const |
Get NetDevice associated with the LinkService.
Definition at line 67 of file ndn-net-device-link-service.cpp.
References ndn::tlv::Data, ns3::ndn::L3Protocol::ETHERNET_FRAME_TYPE, ns3::ndn::Convert::getPacketType(), ns3::ndn::FwHopCountTag::Increment(), ndn::tlv::Interest, nfd::face::LinkService::receiveData(), nfd::face::LinkService::receiveInterest(), and ns3::ndn::Convert::ToPacket().