32 #ifndef DSR_PASSIVEBUFF_H
33 #define DSR_PASSIVEBUFF_H
36 #include "ns3/ipv4-routing-protocol.h"
37 #include "ns3/simulator.h"
void SetExpireTime(Time exp)
keep track of time values and allow control of global simulation resolution
Ptr< const Packet > m_packet
void SetPassiveBufferTimeout(Time t)
void SetDestination(Ipv4Address d)
Control the scheduling of simulation events.
DSR Passive Buffer Entry.
Time GetPassiveBufferTimeout() const
uint16_t m_fragmentOffset
uint16_t GetFragmentOffset() const
void SetNextHop(Ipv4Address n)
void SetPacket(Ptr< const Packet > p)
bool Enqueue(PassiveBuffEntry &entry)
uint16_t m_identification
bool Dequeue(Ipv4Address dst, PassiveBuffEntry &entry)
void SetMaxQueueLen(uint32_t len)
void SetSource(Ipv4Address s)
bool operator==(PassiveBuffEntry const &o) const
static TypeId GetTypeId()
Get the type identificator.
Ipv4Address GetSource() const
bool AllEqual(PassiveBuffEntry &entry)
Time m_passiveBufferTimeout
uint8_t GetSegsLeft() const
uint16_t GetIdentification() const
uint32_t GetMaxQueueLen() const
void DropLink(PassiveBuffEntry en, std::string reason)
virtual ~PassiveBuffer()
Destructor.
void SetProtocol(uint8_t p)
std::vector< PassiveBuffEntry > m_passiveBuffer
void Drop(PassiveBuffEntry en, std::string reason)
PassiveBuffEntry(Ptr< const Packet > pa=0, Ipv4Address d=Ipv4Address(), Ipv4Address s=Ipv4Address(), Ipv4Address n=Ipv4Address(), uint16_t i=0, uint16_t f=0, uint8_t seg=0, Time exp=Simulator::Now(), uint8_t p=0)
Time GetExpireTime() const
PassiveBuffer()
Constructor.
Ipv4 addresses are stored in host order in this class.
uint8_t GetProtocol() const
Time Now(void)
create an ns3::Time instance which contains the current simulation time.
Ptr< const Packet > GetPacket() const
void SetSegsLeft(uint8_t seg)
void SetIdentification(uint16_t i)
a base class which provides memory management and object aggregation
Ipv4Address GetDestination() const
Ipv4Address GetNextHop() const
bool Find(Ipv4Address dst)
void SetFragmentOffset(uint16_t f)
static bool LinkEqual(PassiveBuffEntry en, const std::vector< Ipv4Address > link)
a unique identifier for an interface.