|
A Discrete-Event Network Simulator
|
API
|
Go to the documentation of this file.
23 #ifndef ICMPV6_HEADER_H
24 #define ICMPV6_HEADER_H
26 #include "ns3/header.h"
27 #include "ns3/ipv6-address.h"
28 #include "ns3/packet.h"
179 virtual void Print (std::ostream& os)
const;
291 virtual void Print (std::ostream& os)
const;
388 virtual void Print (std::ostream& os)
const;
516 virtual void Print (std::ostream& os)
const;
682 virtual void Print (std::ostream& os)
const;
800 virtual void Print (std::ostream& os)
const;
886 virtual void Print (std::ostream& os)
const;
976 uint16_t
GetId ()
const;
982 void SetId (uint16_t
id);
994 void SetSeq (uint16_t seq);
1000 virtual void Print (std::ostream& os)
const;
1079 virtual void Print (std::ostream& os)
const;
1153 uint32_t
GetMtu ()
const;
1159 void SetMtu (uint32_t mtu);
1165 virtual void Print (std::ostream& os)
const;
1245 virtual void Print (std::ostream& os)
const;
1320 uint32_t
GetPtr ()
const;
1326 void SetPtr (uint32_t ptr);
1332 virtual void Print (std::ostream& os)
const;
1418 uint32_t
GetMtu ()
const;
1424 void SetMtu (uint32_t mtu);
1430 virtual void Print (std::ostream& os)
const;
1587 virtual void Print (std::ostream& os)
const;
1699 virtual void Print (std::ostream& os)
const;
1773 virtual void Print (std::ostream& os)
const;
Ptr< Packet > GetPacket() const
Get the incorrect packet.
void SetReserved(uint32_t reserved)
Set the reserved field.
a unique identifier for an interface.
virtual void Serialize(Buffer::Iterator start) const
Serialize the packet.
static TypeId GetTypeId()
Get the UID of this class.
uint32_t m_reserved
The reserved value.
Icmpv6DestinationUnreachable()
Constructor.
virtual void Print(std::ostream &os) const
Print information.
virtual ~Icmpv6Redirection()
Destructor.
uint32_t GetReserved() const
Get the reserved field.
virtual ~Icmpv6OptionMtu()
Destructor.
static TypeId GetTypeId()
Get the UID of this class.
Ptr< Packet > GetPacket() const
Get the incorrect packet.
virtual void Print(std::ostream &os) const
Print information.
Ipv6Address GetIpv6Target() const
Get the IPv6 target field.
virtual void Serialize(Buffer::Iterator start) const
Serialize the packet.
Icmpv6OptionLinkLayerAddress()
Constructor.
ICMPv6 Error Time Exceeded header.
virtual void Serialize(Buffer::Iterator start) const
Serialize the packet.
virtual TypeId GetInstanceTypeId() const
Get the instance type ID.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Ipv6Address m_target
The IPv6 target address.
Icmpv6OptionRedirected()
Constructor.
Ptr< Packet > m_packet
the incorrect packet.
void SetDestination(Ipv6Address destination)
Set the IPv6 destination address.
void SetReserved(uint32_t reserved)
Set the reserved field.
virtual ~Icmpv6RS()
Destructor.
uint16_t GetId() const
Get the ID of the packet.
virtual ~Icmpv6OptionRedirected()
Destructor.
void SetPacket(Ptr< Packet > p)
Set the incorrect packet.
virtual void Serialize(Buffer::Iterator start) const
Serialize the packet.
virtual TypeId GetInstanceTypeId() const
Get the instance type ID.
bool GetFlagR() const
Get the R flag.
uint32_t m_reserved
The reserved value.
void SetFlagS(bool s)
Set the S flag.
virtual uint32_t GetSerializedSize() const
Get the serialized size.
Describes an IPv6 address.
void SetFlagM(bool m)
Set the M flag.
void SetPtr(uint32_t ptr)
Set the pointer field.
Ipv6Address GetDestination() const
Get the IPv6 destination address.
uint32_t GetReserved() const
Get the reserved field.
virtual ~Icmpv6TooBig()
Destructor.
static TypeId GetTypeId()
Get the UID of this class.
void SetRetransmissionTime(uint32_t r)
Set the node Retransmission time (Neighbor Discovery).
uint32_t m_reserved
The reserved value.
Ipv6Address m_destination
IPv6 destination address.
virtual void Serialize(Buffer::Iterator start) const
Serialize the packet.
void SetSeq(uint16_t seq)
Set the sequence number.
static TypeId GetTypeId()
Get the UID of this class.
virtual void Serialize(Buffer::Iterator start) const
Serialize the packet.
virtual TypeId GetInstanceTypeId(void) const
Get the instance type ID.
Ptr< Packet > m_packet
The incorrect packet.
void SetReachableTime(uint32_t r)
Set the node Reachable time (Neighbor Discovery).
virtual void Print(std::ostream &os) const
Print information.
uint32_t m_ptr
The pointer field.
virtual void Serialize(Buffer::Iterator start) const
Serialize the packet.
uint16_t m_id
ID of the packet (to distinguish response between many ping program).
virtual TypeId GetInstanceTypeId() const
Get the instance type ID.
virtual void Print(std::ostream &os) const
Print information.
ICMPv6 redirected option.
virtual void Serialize(Buffer::Iterator start) const
Serialize the packet.
uint32_t GetPtr() const
Get the pointer field.
static TypeId GetTypeId()
Get the UID of this class.
uint32_t GetMtu() const
Get the MTU field.
bool GetFlagS() const
Get the S flag.
virtual uint32_t GetSerializedSize() const
Get the serialized size.
void SetReserved(uint16_t reserved)
Set the reserved field.
ICMPv6 link-layer address option.
virtual TypeId GetInstanceTypeId() const
Get the instance type ID.
virtual TypeId GetInstanceTypeId() const
Get the instance type ID.
void SetLifeTime(uint16_t l)
Set the node Life time (Neighbor Discovery).
uint16_t m_seq
Sequence number (to distinguish response).
virtual uint32_t GetSerializedSize() const
Get the serialized size.
virtual void Serialize(Buffer::Iterator start) const
Serialize the packet.
uint32_t m_ReachableTime
The reachable time value.
virtual uint32_t GetSerializedSize() const
Get the serialized size.
Icmpv6OptionMtu()
Constructor.
virtual uint32_t GetSerializedSize() const
Get the serialized size.
void SetFlagR(bool r)
Set the R flag.
virtual void Serialize(Buffer::Iterator start) const
Serialize the packet.
virtual TypeId GetInstanceTypeId() const
Get the instance type ID.
uint16_t GetReserved() const
Get the reserved field.
uint32_t m_reserved
Reserved value.
a polymophic address class
ICMPv6 Router Advertisement header.
Icmpv6ParameterError()
Constructor.
ICMPv6 Neighbor Advertisement header.
void SetFlagO(bool o)
Set the O flag.
uint32_t GetReserved() const
Get the reserved field.
virtual void Print(std::ostream &os) const
Print information.
void SetPacket(Ptr< Packet > p)
Set the incorrect packet.
virtual ~Icmpv6NA()
Destructor.
virtual void Print(std::ostream &os) const
Print information.
Ptr< Packet > m_packet
The redirected packet.
bool GetFlagH() const
Get the H flag.
virtual void Print(std::ostream &os) const
Print information.
void SetFlagH(bool h)
Set the H flag.
virtual void Serialize(Buffer::Iterator start) const
Serialize the packet.
static TypeId GetTypeId()
Get the UID of this class.
Ptr< Packet > GetPacket() const
Get the incorrect packet.
Ipv6Address GetTarget() const
Get the IPv6 target address.
virtual void Serialize(Buffer::Iterator start) const
Serialize the packet.
Ptr< Packet > m_packet
The incorrect Packet.
virtual void Print(std::ostream &os) const
Print information.
NS_DEPRECATED_3_34 void SetFlags(uint8_t f)
Setflags.
virtual uint32_t GetSerializedSize() const
Get the serialized size.
NS_DEPRECATED_3_34 uint8_t GetFlags() const
Getflags.
void SetFlagO(bool o)
Set the O flag.
Ipv6Address m_target
IPv6 target address.
Icmpv6TimeExceeded()
Constructor.
uint16_t GetLifeTime() const
Get the node Life time (Neighbor Discovery).
uint32_t GetReserved() const
Get the reserved field.
virtual uint32_t GetSerializedSize() const
Get the serialized size.
virtual ~Icmpv6NS()
Destructor.
uint32_t m_mtu
The MTU value.
void SetReserved(uint32_t reserved)
Set the reserved field.
uint32_t m_RetransmissionTimer
The retransmission timer.
void SetCurHopLimit(uint8_t m)
Set the IPv6 maximum number of jumps.
virtual uint32_t GetSerializedSize() const
Get the serialized size.
virtual void Print(std::ostream &os) const
Print information.
static TypeId GetTypeId()
Get the UID of this class.
Address GetAddress() const
Get the hardware address.
void SetIpv6Target(Ipv6Address target)
Set the IPv6 target field.
void SetPacket(Ptr< Packet > packet)
Set the redirected packet.
virtual ~Icmpv6TimeExceeded()
Destructor.
virtual TypeId GetInstanceTypeId() const
Get the instance type ID.
Ipv6Address GetIpv6Target() const
Get the IPv6 target field.
ICMPv6 Router Solicitation header.
iterator in a Buffer instance
Icmpv6Redirection()
Constructor.
Ptr< Packet > m_packet
The incorrect packet.
ICMPv6 Neighbor Solicitation header.
static TypeId GetTypeId()
Get the UID of this class.
void SetMtu(uint32_t mtu)
Set the MTU.
static TypeId GetTypeId()
Get the UID of this class.
bool GetFlagO() const
Get the O flag.
Ptr< Packet > GetPacket() const
Get the incorrect packet.
virtual TypeId GetInstanceTypeId() const
Get the instance type ID.
virtual void Print(std::ostream &os) const
Print information.
void SetTarget(Ipv6Address target)
Set the IPv6 target address.
uint32_t GetRetransmissionTime() const
Get the node Retransmission time (Neighbor Discovery).
uint8_t m_curHopLimit
The max jumps.
Address m_addr
The hardware address.
void SetReserved(uint32_t reserved)
Set the reserved field.
double f(double x, void *params)
ICMPv6 Error Parameter Error header.
void SetMtu(uint32_t mtu)
Set the MTU.
virtual uint32_t GetSerializedSize() const
Get the serialized size.
virtual uint32_t GetSerializedSize() const
Get the serialized size.
uint32_t m_mtu
The MTU value.
uint32_t GetReachableTime() const
Get the node Reachable time (Neighbor Discovery).
virtual uint32_t GetSerializedSize() const
Get the serialized size.
virtual TypeId GetInstanceTypeId() const
Get the instance type ID.
virtual TypeId GetInstanceTypeId() const
Get the instance type ID.
void SetAddress(Address addr)
Set the hardware address.
uint16_t GetSeq() const
Get the sequence number.
void SetId(uint16_t id)
Set the ID of the packet.
Icmpv6Echo()
Default constructor.
Ipv6Address m_target
The IPv6 target address.
void SetIpv6Target(Ipv6Address target)
Set the IPv6 target field.
virtual ~Icmpv6ParameterError()
Destructor.
void SetPacket(Ptr< Packet > p)
Set the incorrect packet.
virtual void Print(std::ostream &os) const
Print information.
static TypeId GetTypeId()
Get the UID of this class.
uint16_t m_reserved
The reserved value.
static TypeId GetTypeId()
Get the UID of this class.
virtual TypeId GetInstanceTypeId() const
Get the instance type ID.
virtual void Serialize(Buffer::Iterator start) const
Serialize the packet.
virtual ~Icmpv6DestinationUnreachable()
Destructor.
virtual ~Icmpv6Echo()
Destructor.
static TypeId GetTypeId()
Get the UID of this class.
virtual ~Icmpv6OptionLinkLayerAddress()
Destructor.
bool GetFlagM() const
Get the M flag.
uint16_t m_LifeTime
The lifetime value.
bool GetFlagO() const
Get the O flag.
virtual ~Icmpv6RA()
Destructor.
void SetPacket(Ptr< Packet > p)
Set the incorrect packet.
ICMPv6 Redirection header.
virtual void Print(std::ostream &os) const
Print information.
uint8_t GetCurHopLimit() const
Get the IPv6 maximum number of jumps.
#define NS_DEPRECATED_3_34
Tag for things deprecated in version ns-3.34.
uint32_t GetMtu() const
Get the MTU.
virtual void Print(std::ostream &os) const
Print information.
virtual uint32_t GetSerializedSize() const
Get the serialized size.
Icmpv6TooBig()
Constructor.
static TypeId GetTypeId()
Get the UID of this class.
ICMPv6 Error Too Big header.
Ptr< Packet > GetPacket() const
Get the redirected packet.
ICMPv6 Error Destination Unreachable header.
virtual uint32_t GetSerializedSize() const
Get the serialized size.
virtual TypeId GetInstanceTypeId() const
Get the instance type ID.