25 #include "ns3/object.h"
26 #include "ns3/buffer.h"
27 #include "ns3/object-factory.h"
67 virtual void Print (std::ostream &os)
const = 0;
85 virtual uint8_t
GetKind (
void)
const = 0;
129 virtual void Print (std::ostream &os)
const;
133 virtual uint8_t
GetKind (
void)
const;
virtual uint8_t GetKind(void) const
Get the `kind' (as in RFC 793) of this option.
virtual void Print(std::ostream &os) const =0
Print the Option contents.
iterator in a Buffer instance
virtual uint32_t Deserialize(Buffer::Iterator start)=0
Deserialize the Option from a buffer iterator.
virtual void Print(std::ostream &os) const
Print the Option contents.
virtual ~TcpOptionUnknown()
virtual void Serialize(Buffer::Iterator start) const
Serialize the Option to a buffer iterator.
virtual uint32_t Deserialize(Buffer::Iterator start)
Deserialize the Option from a buffer iterator.
uint8_t m_content[40]
The option data.
virtual void Serialize(Buffer::Iterator start) const =0
Serialize the Option to a buffer iterator.
uint32_t m_size
The unknown option size.
not a standardized value; for unknown recv'd options
virtual uint32_t GetSerializedSize(void) const
Returns number of bytes required for Option serialization.
static bool IsKindKnown(uint8_t kind)
Check if the option is implemented.
static TypeId GetTypeId(void)
Get the type ID.
uint8_t m_kind
The unknown option kind.
virtual uint8_t GetKind(void) const =0
Get the `kind' (as in RFC 793) of this option.
Kind
The option Kind, as defined in the respective RFCs.
Base class for all kinds of TCP options.
A base class which provides memory management and object aggregation.
virtual TypeId GetInstanceTypeId(void) const
Implement the GetInstanceTypeId method defined in ObjectBase.
virtual TypeId GetInstanceTypeId(void) const
Implement the GetInstanceTypeId method defined in ObjectBase.
a unique identifier for an interface.
static Ptr< TcpOption > CreateOption(uint8_t kind)
Creates an option.
static TypeId GetTypeId(void)
Get the type ID.
virtual uint32_t GetSerializedSize(void) const =0
Returns number of bytes required for Option serialization.