21 #ifndef SATELLITE_SIMPLE_NET_DEVICE_H
22 #define SATELLITE_SIMPLE_NET_DEVICE_H
26 #include <ns3/error-model.h>
27 #include <ns3/net-device.h>
28 #include <ns3/packet.h>
29 #include <ns3/traced-callback.h>
79 void Receive(Ptr<Packet> packet, uint16_t protocol, Mac48Address to, Mac48Address from);
89 void SetChannel(Ptr<SatSimpleChannel> channel);
103 virtual void SetIfIndex(
const uint32_t index);
108 virtual bool SetMtu(
const uint16_t mtu);
109 virtual uint16_t
GetMtu(
void)
const;
115 virtual Address
GetMulticast(Ipv4Address multicastGroup)
const;
118 virtual bool Send(Ptr<Packet> packet,
const Address& dest, uint16_t protocolNumber);
119 virtual bool SendFrom(Ptr<Packet> packet,
120 const Address& source,
122 uint16_t protocolNumber);
123 virtual Ptr<Node>
GetNode(
void)
const;
124 virtual void SetNode(Ptr<Node> node);
Satellite simple net device for satellite public and backbone network use.
virtual Address GetBroadcast(void) const
virtual uint16_t GetMtu(void) const
void Receive(Ptr< Packet > packet, uint16_t protocol, Mac48Address to, Mac48Address from)
Receive a packet from a connected SatSimpleChannel.
virtual void SetNode(Ptr< Node > node)
void SetChannel(Ptr< SatSimpleChannel > channel)
Attach a channel to this net device.
virtual uint32_t GetIfIndex(void) const
virtual bool IsBridge(void) const
virtual void SetReceiveCallback(NetDevice::ReceiveCallback cb)
static TypeId GetTypeId(void)
Get the type ID.
virtual bool SupportsSendFrom(void) const
virtual bool NeedsArp(void) const
virtual void SetIfIndex(const uint32_t index)
virtual Ptr< Node > GetNode(void) const
Ptr< SatSimpleChannel > m_channel
virtual bool Send(Ptr< Packet > packet, const Address &dest, uint16_t protocolNumber)
virtual bool IsBroadcast(void) const
virtual bool IsLinkUp(void) const
SatSimpleNetDevice()
Default constructor.
NetDevice::ReceiveCallback m_rxCallback
virtual Address GetAddress(void) const
virtual bool SendFrom(Ptr< Packet > packet, const Address &source, const Address &dest, uint16_t protocolNumber)
NetDevice::PromiscReceiveCallback m_promiscCallback
Ptr< ErrorModel > m_receiveErrorModel
virtual void AddLinkChangeCallback(Callback< void > callback)
~SatSimpleNetDevice()
Destructor for SatSimpleNetDevice.
virtual void DoDispose(void)
Dispose of this class instance.
virtual bool IsPointToPoint(void) const
virtual void SetAddress(Address address)
TracedCallback< Ptr< const Packet > > m_phyRxDropTrace
The trace source fired when the phy layer drops a packet it has received due to the error model being...
virtual bool SetMtu(const uint16_t mtu)
virtual Ptr< Channel > GetChannel(void) const
virtual Address GetMulticast(Ipv4Address multicastGroup) const
void SetReceiveErrorModel(Ptr< ErrorModel > em)
Attach a receive ErrorModel to the SimpleNetDevice.
virtual bool IsMulticast(void) const
virtual void SetPromiscReceiveCallback(PromiscReceiveCallback cb)
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.