49 .SetGroupName (
"Internet")
67 os <<
"[" << it->first <<
"," << it->second <<
"]";
102 uint8_t readKind = i.
ReadU8 ();
109 uint8_t size = i.
ReadU8 ();
110 NS_LOG_LOGIC (
"Size: " << static_cast<uint32_t> (size));
112 uint8_t sackCount = (size - 2) / 8;
143 return static_cast<uint32_t
> (
m_sackList.size ());
162 std::stringstream ss;
176 std::stringstream ss;
177 ss <<
"[" << sackBlock.first <<
";" << sackBlock.second <<
"]";
virtual uint8_t GetKind(void) const
Get the ‘kind’ (as in RFC 793) of this option.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by "...
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
std::list< SackBlock > SackList
SACK list definition.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
void AddSackBlock(SackBlock s)
Add a SACK block.
uint32_t ReadNtohU32(void)
iterator in a Buffer instance
uint32_t GetNumSackBlocks(void) const
Count the total number of SACK blocks.
virtual TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
std::ostream & operator<<(std::ostream &os, const Angles &a)
print a struct Angles to output
SackList m_sackList
the list of SACK blocks
Every class exported by the ns3 library is enclosed in the ns3 namespace.
virtual uint32_t Deserialize(Buffer::Iterator start)
Deserialize the Option from a buffer iterator.
Defines the TCP option of kind 5 (selective acknowledgment option) as in RFC 2018 ...
void WriteHtonU32(uint32_t data)
NS_LOG_LOGIC("Net device "<< nd<< " is not bridged")
std::pair< SequenceNumber32, SequenceNumber32 > SackBlock
SACK block definition.
void WriteU8(uint8_t data)
#define NS_LOG_WARN(msg)
Use NS_LOG to output a message of level LOG_WARN.
void ClearSackList(void)
Clear the SACK list.
virtual void Serialize(Buffer::Iterator start) const
Serialize the Option to a buffer iterator.
virtual uint32_t GetSerializedSize(void) const
Returns number of bytes required for Option serialization.
Base class for all kinds of TCP options.
static TypeId GetTypeId(void)
Get the type ID.
NUMERIC_TYPE GetValue() const
Extracts the numeric value of the sequence number.
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
virtual void Print(std::ostream &os) const
Print the Option contents.
SequenceNumber< uint32_t, int32_t > SequenceNumber32
32 bit Sequence number.
SackList GetSackList(void) const
Get the SACK list.