Header for the Transmission Control Protocol. More...
#include <tcp-header.h>
Public Types | |
enum | Flags_t { NONE = 0, FIN = 1, SYN = 2, RST = 4, PSH = 8, ACK = 16, URG = 32, ECE = 64, CWR = 128 } |
TCP flag field values. More... | |
Public Member Functions | |
TcpHeader () | |
virtual | ~TcpHeader () |
bool | AppendOption (Ptr< TcpOption > option) |
Append an option to the TCP header. More... | |
virtual uint32_t | Deserialize (Buffer::Iterator start) |
void | EnableChecksums (void) |
Enable checksum calculation for TCP. More... | |
SequenceNumber32 | GetAckNumber () const |
Get the ACK number. More... | |
uint16_t | GetDestinationPort () const |
Get the destination port. More... | |
uint8_t | GetFlags () const |
Get the flags. More... | |
virtual TypeId | GetInstanceTypeId (void) const |
uint8_t | GetLength () const |
Get the length in words. More... | |
Ptr< TcpOption > | GetOption (uint8_t kind) const |
Get the option specified. More... | |
SequenceNumber32 | GetSequenceNumber () const |
Get the sequence number. More... | |
virtual uint32_t | GetSerializedSize (void) const |
uint16_t | GetSourcePort () const |
Get the source port. More... | |
uint16_t | GetUrgentPointer () const |
Get the urgent pointer. More... | |
uint16_t | GetWindowSize () const |
Get the window size. More... | |
bool | HasOption (uint8_t kind) const |
Check if the header has the option specified. More... | |
void | InitializeChecksum (Ipv4Address source, Ipv4Address destination, uint8_t protocol) |
Initialize the TCP checksum. More... | |
void | InitializeChecksum (Ipv6Address source, Ipv6Address destination, uint8_t protocol) |
Initialize the TCP checksum. More... | |
void | InitializeChecksum (Address source, Address destination, uint8_t protocol) |
Initialize the TCP checksum. More... | |
bool | IsChecksumOk (void) const |
Is the TCP checksum correct ? More... | |
virtual void | Print (std::ostream &os) const |
virtual void | Serialize (Buffer::Iterator start) const |
void | SetAckNumber (SequenceNumber32 ackNumber) |
Set the ACK number. More... | |
void | SetDestinationPort (uint16_t port) |
Set the destination port. More... | |
void | SetFlags (uint8_t flags) |
Set flags of the header. More... | |
void | SetSequenceNumber (SequenceNumber32 sequenceNumber) |
Set the sequence Number. More... | |
void | SetSourcePort (uint16_t port) |
Set the source port. More... | |
void | SetUrgentPointer (uint16_t urgentPointer) |
Set the urgent pointer. More... | |
void | SetWindowSize (uint16_t windowSize) |
Set the window size. More... | |
![]() | |
virtual | ~Header () |
![]() | |
virtual | ~ObjectBase () |
Virtual destructor. More... | |
void | GetAttribute (std::string name, AttributeValue &value) const |
bool | GetAttributeFailSafe (std::string name, AttributeValue &attribute) const |
void | SetAttribute (std::string name, const AttributeValue &value) |
bool | SetAttributeFailSafe (std::string name, const AttributeValue &value) |
bool | TraceConnect (std::string name, std::string context, const CallbackBase &cb) |
bool | TraceConnectWithoutContext (std::string name, const CallbackBase &cb) |
bool | TraceDisconnect (std::string name, std::string context, const CallbackBase &cb) |
bool | TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb) |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
Get the type ID. More... | |
![]() | |
static TypeId | GetTypeId (void) |
Get the type ID. More... | |
![]() | |
static TypeId | GetTypeId (void) |
Get the type ID. More... | |
![]() | |
static TypeId | GetTypeId (void) |
Get the type ID. More... | |
Private Types | |
typedef std::list< Ptr < TcpOption > > | TcpOptionList |
List of TcpOption. More... | |
Private Member Functions | |
uint16_t | CalculateHeaderChecksum (uint16_t size) const |
Calculate the header checksum. More... | |
uint8_t | CalculateHeaderLength () const |
Calculates the header length (in words) More... | |
Private Attributes | |
SequenceNumber32 | m_ackNumber |
ACK number. More... | |
bool | m_calcChecksum |
Flag to calculate checksum. More... | |
Address | m_destination |
Destination IP address. More... | |
uint16_t | m_destinationPort |
Destination port. More... | |
uint8_t | m_flags |
Flags (really a uint6_t) More... | |
bool | m_goodChecksum |
Flag to indicate that checksum is correct. More... | |
uint8_t | m_length |
Length (really a uint4_t) in words. More... | |
TcpOptionList | m_options |
TcpOption present in the header. More... | |
uint8_t | m_optionsLen |
Tcp options length. More... | |
uint8_t | m_protocol |
Protocol number. More... | |
SequenceNumber32 | m_sequenceNumber |
Sequence number. More... | |
Address | m_source |
Source IP address. More... | |
uint16_t | m_sourcePort |
Source port. More... | |
uint16_t | m_urgentPointer |
Urgent pointer. More... | |
uint16_t | m_windowSize |
Window size. More... | |
Static Private Attributes | |
static const uint8_t | m_maxOptionsLen = 40 |
Maximum options length. More... | |
Friends | |
bool | operator== (const TcpHeader &lhs, const TcpHeader &rhs) |
Additional Inherited Members | |
![]() | |
void | ConstructSelf (const AttributeConstructionList &attributes) |
virtual void | NotifyConstructionCompleted (void) |
This method is invoked once all member attributes have been initialized. More... | |
Header for the Transmission Control Protocol.
Doxygen introspection did not find any typical Config paths.
This class has fields corresponding to those in a network TCP header (port numbers, sequence and acknowledgement numbers, flags, etc) as well as methods for serialization to and deserialization from a byte buffer.
No Attributes are defined for this type.
No TraceSources are defined for this type.
Definition at line 44 of file tcp-header.h.
|
private |
List of TcpOption.
Definition at line 299 of file tcp-header.h.
TCP flag field values.
Enumerator | |
---|---|
NONE |
No flags. |
FIN |
FIN. |
SYN |
SYN. |
RST |
Reset. |
PSH |
Push. |
ACK |
Ack. |
URG |
Urgent. |
ECE |
ECE. |
CWR |
CWR. |
Definition at line 232 of file tcp-header.h.
ns3::TcpHeader::TcpHeader | ( | ) |
Definition at line 35 of file tcp-header.cc.
|
virtual |
Definition at line 50 of file tcp-header.cc.
Append an option to the TCP header.
option | The option to append |
Definition at line 453 of file tcp-header.cc.
References ns3::TcpOption::END, ns3::TcpOption::GetKind(), ns3::TcpOption::GetSerializedSize(), ns3::TcpOption::IsKindKnown(), m_length, m_maxOptionsLen, m_options, m_optionsLen, and NS_LOG_WARN.
Referenced by ns3::TcpSocketBase::AddOptionTimestamp(), ns3::TcpSocketBase::AddOptionWScale(), ns3::TcpHeaderWithRFC793OptionTestCase::CheckCorrectDeserialize(), ns3::TcpHeaderWithRFC793OptionTestCase::CheckNoPadding(), and ns3::TcpHeaderWithRFC793OptionTestCase::OneOptionAtTime().
|
private |
Calculate the header checksum.
size | packet size |
Definition at line 181 of file tcp-header.cc.
References ns3::Buffer::AddAtStart(), ns3::Buffer::Begin(), ns3::Buffer::Iterator::CalculateIpChecksum(), ns3::Ipv4Address::IsMatchingType(), m_destination, m_protocol, m_source, ns3::Address::MAX_SIZE, ns3::WriteTo(), ns3::Buffer::Iterator::WriteU16(), and ns3::Buffer::Iterator::WriteU8().
Referenced by Deserialize(), and Serialize().
|
private |
Calculates the header length (in words)
Given the standard size of the header, the method checks for options and calculates the real length (in words).
Definition at line 435 of file tcp-header.cc.
References m_options.
Referenced by Deserialize(), and GetSerializedSize().
|
virtual |
start | an iterator which points to where the header should read from. |
This method is used by Packet::RemoveHeader to re-create a header from the byte buffer of a packet. The data read is expected to match bit-for-bit the representation of this header in real networks.
Note that data is not actually removed from the buffer to which the iterator points. Both Packet::RemoveHeader() and Packet::PeekHeader() call Deserialize(), but only the RemoveHeader() has additional statements to remove the header bytes from the underlying buffer and associated metadata.
Implements ns3::Header.
Definition at line 353 of file tcp-header.cc.
References CalculateHeaderChecksum(), CalculateHeaderLength(), ns3::TcpOption::CreateOption(), ns3::TcpOption::Deserialize(), ns3::TcpOption::END, ns3::TcpOption::GetKind(), ns3::TcpOption::GetSerializedSize(), GetSerializedSize(), ns3::Buffer::Iterator::GetSize(), ns3::TcpOption::IsKindKnown(), m_ackNumber, m_calcChecksum, m_destinationPort, m_flags, m_goodChecksum, m_length, m_options, m_sequenceNumber, m_sourcePort, m_urgentPointer, m_windowSize, ns3::Buffer::Iterator::Next(), NS_LOG_ERROR, NS_LOG_WARN, ns3::Buffer::Iterator::PeekU8(), ns3::Buffer::Iterator::ReadNtohU16(), ns3::Buffer::Iterator::ReadNtohU32(), visualizer.core::start(), and ns3::TcpOption::UNKNOWN.
Referenced by ns3::TcpHeaderWithRFC793OptionTestCase::CheckCorrectDeserialize(), ns3::TcpHeaderGetSetTestCase::DoRun(), and ns3::TcpHeaderWithRFC793OptionTestCase::OneOptionAtTime().
void ns3::TcpHeader::EnableChecksums | ( | void | ) |
Enable checksum calculation for TCP.
Definition at line 55 of file tcp-header.cc.
References m_calcChecksum.
Referenced by ns3::TcpL4Protocol::Receive(), ns3::TcpL4Protocol::Send(), and ns3::TcpL4Protocol::SendPacket().
SequenceNumber32 ns3::TcpHeader::GetAckNumber | ( | ) | const |
Get the ACK number.
Definition at line 121 of file tcp-header.cc.
References m_ackNumber.
Referenced by ns3::TcpWestwood::CountAck(), ns3::TcpHeaderGetSetTestCase::DoRun(), ns3::TcpSocketBase::EstimateRtt(), ns3::TcpSocketBase::ProcessSynRcvd(), ns3::TcpSocketBase::ProcessSynSent(), ns3::TcpSocketBase::ProcessWait(), ns3::TcpL4Protocol::Receive(), ns3::TcpWestwood::ReceivedAck(), ns3::TcpSocketBase::ReceivedAck(), ns3::TcpSocketBase::ReceivedData(), and ns3::TcpL4Protocol::SendPacket().
uint16_t ns3::TcpHeader::GetDestinationPort | ( | ) | const |
Get the destination port.
Definition at line 109 of file tcp-header.cc.
References m_destinationPort.
Referenced by ns3::IpcsClassifier::Classify(), ns3::EpcTftClassifier::Classify(), ns3::TcpHeaderGetSetTestCase::DoRun(), and ns3::TcpL4Protocol::Receive().
uint8_t ns3::TcpHeader::GetFlags | ( | ) | const |
Get the flags.
Definition at line 133 of file tcp-header.cc.
References m_flags.
Referenced by ns3::TcpSocketBase::AddOptions(), ns3::TcpSocketBase::AddOptionWScale(), ns3::TcpHeaderGetSetTestCase::DoRun(), ns3::TcpSocketBase::ProcessClosing(), ns3::TcpSocketBase::ProcessEstablished(), ns3::TcpSocketBase::ProcessLastAck(), ns3::TcpSocketBase::ProcessListen(), ns3::TcpSocketBase::ProcessSynRcvd(), ns3::TcpSocketBase::ProcessSynSent(), ns3::TcpSocketBase::ProcessWait(), ns3::TcpSocketBase::ReadOptions(), ns3::TcpL4Protocol::Receive(), ns3::TcpWestwood::ReceivedAck(), ns3::TcpSocketBase::ReceivedAck(), ns3::TcpSocketBase::ReceivedData(), and ns3::TcpL4Protocol::SendPacket().
|
virtual |
This method is typically implemented by ns3::Object::GetInstanceTypeId but some classes which derive from ns3::ObjectBase directly have to implement it themselves.
Implements ns3::ObjectBase.
Definition at line 240 of file tcp-header.cc.
References GetTypeId().
uint8_t ns3::TcpHeader::GetLength | ( | ) | const |
Get the length in words.
A word is 4 bytes; without Tcp Options, header is 5 words (20 bytes). With options, it can reach up to 15 words (60 bytes).
Definition at line 127 of file tcp-header.cc.
References m_length.
Referenced by ns3::TcpHeaderWithRFC793OptionTestCase::CheckNoPadding(), ns3::TcpHeaderGetSetTestCase::DoRun(), ns3::TcpHeaderWithRFC793OptionTestCase::OneOptionAtTime(), Serialize(), and ns3::TcpHeaderGetSetTestCase::TcpHeaderGetSetTestCase().
Get the option specified.
kind | the option to retrieve |
Definition at line 479 of file tcp-header.cc.
References m_options.
Referenced by ns3::TcpSocketBase::ReadOptions().
SequenceNumber32 ns3::TcpHeader::GetSequenceNumber | ( | void | ) | const |
Get the sequence number.
Definition at line 115 of file tcp-header.cc.
References m_sequenceNumber.
Referenced by ns3::TcpRxBuffer::Add(), ns3::TcpSocketBase::CompleteFork(), ns3::TcpHeaderGetSetTestCase::DoRun(), ns3::TcpSocketBase::PeerClose(), ns3::TcpSocketBase::ProcessClosing(), ns3::TcpSocketBase::ProcessLastAck(), ns3::TcpSocketBase::ProcessSynRcvd(), ns3::TcpSocketBase::ProcessSynSent(), ns3::TcpSocketBase::ProcessWait(), ns3::TcpL4Protocol::Receive(), ns3::TcpSocketBase::ReceivedData(), and ns3::TcpL4Protocol::SendPacket().
|
virtual |
This method is used by Packet::AddHeader to store a header into the byte buffer of a packet. This method should return the number of bytes which are needed to store the full header data by Serialize.
Implements ns3::Header.
Definition at line 302 of file tcp-header.cc.
References CalculateHeaderLength().
Referenced by ns3::TcpHeaderWithRFC793OptionTestCase::CheckNoPadding(), Deserialize(), ns3::TcpHeaderWithRFC793OptionTestCase::OneOptionAtTime(), and ns3::TcpHeaderGetSetTestCase::TcpHeaderGetSetTestCase().
uint16_t ns3::TcpHeader::GetSourcePort | ( | ) | const |
Get the source port.
Definition at line 103 of file tcp-header.cc.
References m_sourcePort.
Referenced by ns3::IpcsClassifier::Classify(), ns3::EpcTftClassifier::Classify(), ns3::TcpHeaderGetSetTestCase::DoRun(), and ns3::TcpL4Protocol::Receive().
|
static |
Get the type ID.
Definition at line 230 of file tcp-header.cc.
References ns3::TypeId::SetParent().
Referenced by GetInstanceTypeId().
uint16_t ns3::TcpHeader::GetUrgentPointer | ( | ) | const |
Get the urgent pointer.
Definition at line 145 of file tcp-header.cc.
References m_urgentPointer.
Referenced by ns3::TcpHeaderGetSetTestCase::DoRun().
uint16_t ns3::TcpHeader::GetWindowSize | ( | ) | const |
Get the window size.
Definition at line 139 of file tcp-header.cc.
References m_windowSize.
Referenced by ns3::TcpHeaderGetSetTestCase::DoRun().
bool ns3::TcpHeader::HasOption | ( | uint8_t | kind | ) | const |
Check if the header has the option specified.
kind | Option to check for |
Definition at line 495 of file tcp-header.cc.
References m_options.
Referenced by ns3::TcpHeaderWithRFC793OptionTestCase::CheckCorrectDeserialize(), ns3::TcpHeaderWithRFC793OptionTestCase::OneOptionAtTime(), and ns3::TcpSocketBase::ReadOptions().
void ns3::TcpHeader::InitializeChecksum | ( | Ipv4Address | source, |
Ipv4Address | destination, | ||
uint8_t | protocol | ||
) |
Initialize the TCP checksum.
If you want to use tcp checksums, you should call this method prior to adding the header to a packet.
source | the IP source to use in the underlying IP packet. |
destination | the IP destination to use in the underlying IP packet. |
protocol | the protocol number to use in the underlying IP packet. |
Definition at line 151 of file tcp-header.cc.
References m_destination, m_protocol, and m_source.
Referenced by ns3::TcpL4Protocol::Receive(), ns3::TcpL4Protocol::Send(), and ns3::TcpL4Protocol::SendPacket().
void ns3::TcpHeader::InitializeChecksum | ( | Ipv6Address | source, |
Ipv6Address | destination, | ||
uint8_t | protocol | ||
) |
Initialize the TCP checksum.
If you want to use tcp checksums, you should call this method prior to adding the header to a packet.
source | the IP source to use in the underlying IP packet. |
destination | the IP destination to use in the underlying IP packet. |
protocol | the protocol number to use in the underlying IP packet. |
Definition at line 161 of file tcp-header.cc.
References m_destination, m_protocol, and m_source.
Initialize the TCP checksum.
If you want to use tcp checksums, you should call this method prior to adding the header to a packet.
source | the IP source to use in the underlying IP packet. |
destination | the IP destination to use in the underlying IP packet. |
protocol | the protocol number to use in the underlying IP packet. |
Definition at line 171 of file tcp-header.cc.
References m_destination, m_protocol, and m_source.
bool ns3::TcpHeader::IsChecksumOk | ( | void | ) | const |
Is the TCP checksum correct ?
Definition at line 224 of file tcp-header.cc.
References m_goodChecksum.
Referenced by ns3::TcpL4Protocol::Receive().
|
virtual |
os | output stream This method is used by Packet::Print to print the content of a trailer as ascii data to a c++ output stream. Although the trailer is free to format its output as it wishes, it is recommended to follow a few rules to integrate with the packet pretty printer: start with flags, small field values located between a pair of parens. Values should be separated by whitespace. Follow the parens with the important fields, separated by whitespace. i.e.: (field1 val1 field2 val2 field3 val3) field4 val4 field5 val5 |
Implements ns3::Header.
Definition at line 246 of file tcp-header.cc.
References ACK, CWR, ECE, FIN, m_ackNumber, m_destinationPort, m_flags, m_options, m_sequenceNumber, m_sourcePort, m_windowSize, PSH, RST, SYN, and URG.
|
virtual |
start | an iterator which points to where the header should be written. |
This method is used by Packet::AddHeader to store a header into the byte buffer of a packet. The data written is expected to match bit-for-bit the representation of this header in a real network.
Implements ns3::Header.
Definition at line 308 of file tcp-header.cc.
References CalculateHeaderChecksum(), ns3::TcpOption::END, GetLength(), ns3::Buffer::Iterator::GetSize(), ns3::SequenceNumber< NUMERIC_TYPE, SIGNED_TYPE >::GetValue(), m_ackNumber, m_calcChecksum, m_destinationPort, m_flags, m_options, m_sequenceNumber, m_sourcePort, m_urgentPointer, m_windowSize, ns3::Buffer::Iterator::Next(), visualizer.core::start(), ns3::Buffer::Iterator::WriteHtonU16(), ns3::Buffer::Iterator::WriteHtonU32(), and ns3::Buffer::Iterator::WriteU8().
Referenced by ns3::TcpHeaderWithRFC793OptionTestCase::CheckCorrectDeserialize(), ns3::TcpHeaderWithRFC793OptionTestCase::CheckNoPadding(), ns3::TcpHeaderWithRFC793OptionTestCase::OneOptionAtTime(), and ns3::TcpHeaderGetSetTestCase::TcpHeaderGetSetTestCase().
void ns3::TcpHeader::SetAckNumber | ( | SequenceNumber32 | ackNumber | ) |
Set the ACK number.
ackNumber | the ACK number for this TcpHeader |
Definition at line 79 of file tcp-header.cc.
References m_ackNumber.
Referenced by ns3::TcpSocketBase::DoForwardUp(), ns3::TcpSocketBase::PersistTimeout(), ns3::TcpL4Protocol::Send(), ns3::TcpSocketBase::SendDataPacket(), and ns3::TcpHeaderGetSetTestCase::TcpHeaderGetSetTestCase().
void ns3::TcpHeader::SetDestinationPort | ( | uint16_t | port | ) |
Set the destination port.
port | the destination port for this TcpHeader |
Definition at line 67 of file tcp-header.cc.
References m_destinationPort, and port.
Referenced by ns3::TcpSocketBase::DoForwardUp(), ns3::TcpSocketBase::PersistTimeout(), ns3::TcpL4Protocol::Send(), ns3::TcpSocketBase::SendDataPacket(), and ns3::TcpHeaderGetSetTestCase::TcpHeaderGetSetTestCase().
void ns3::TcpHeader::SetFlags | ( | uint8_t | flags | ) |
Set flags of the header.
flags | the flags for this TcpHeader |
Definition at line 85 of file tcp-header.cc.
References m_flags.
Referenced by ns3::TcpSocketBase::DoForwardUp(), ns3::TcpL4Protocol::Receive(), ns3::TcpL4Protocol::Send(), ns3::TcpSocketBase::SendDataPacket(), and ns3::TcpHeaderGetSetTestCase::TcpHeaderGetSetTestCase().
void ns3::TcpHeader::SetSequenceNumber | ( | SequenceNumber32 | sequenceNumber | ) |
Set the sequence Number.
sequenceNumber | the sequence number for this TcpHeader |
Definition at line 73 of file tcp-header.cc.
References m_sequenceNumber.
Referenced by ns3::TcpSocketBase::DoForwardUp(), ns3::TcpSocketBase::PersistTimeout(), ns3::TcpSocketBase::SendDataPacket(), and ns3::TcpHeaderGetSetTestCase::TcpHeaderGetSetTestCase().
void ns3::TcpHeader::SetSourcePort | ( | uint16_t | port | ) |
Set the source port.
port | The source port for this TcpHeader |
Definition at line 61 of file tcp-header.cc.
References m_sourcePort, and port.
Referenced by ns3::TcpSocketBase::DoForwardUp(), ns3::TcpSocketBase::PersistTimeout(), ns3::TcpL4Protocol::Send(), ns3::TcpSocketBase::SendDataPacket(), and ns3::TcpHeaderGetSetTestCase::TcpHeaderGetSetTestCase().
void ns3::TcpHeader::SetUrgentPointer | ( | uint16_t | urgentPointer | ) |
Set the urgent pointer.
urgentPointer | the urgent pointer for this TcpHeader |
Definition at line 97 of file tcp-header.cc.
References m_urgentPointer.
Referenced by ns3::TcpHeaderGetSetTestCase::TcpHeaderGetSetTestCase().
void ns3::TcpHeader::SetWindowSize | ( | uint16_t | windowSize | ) |
Set the window size.
windowSize | the window size for this TcpHeader |
Definition at line 91 of file tcp-header.cc.
References m_windowSize.
Referenced by ns3::TcpSocketBase::DoForwardUp(), ns3::TcpSocketBase::PersistTimeout(), ns3::TcpSocketBase::SendDataPacket(), and ns3::TcpHeaderGetSetTestCase::TcpHeaderGetSetTestCase().
Definition at line 511 of file tcp-header.cc.
|
private |
ACK number.
Definition at line 285 of file tcp-header.h.
Referenced by Deserialize(), GetAckNumber(), ns3::operator==(), Print(), Serialize(), and SetAckNumber().
|
private |
Flag to calculate checksum.
Definition at line 295 of file tcp-header.h.
Referenced by Deserialize(), EnableChecksums(), and Serialize().
|
private |
Destination IP address.
Definition at line 292 of file tcp-header.h.
Referenced by CalculateHeaderChecksum(), and InitializeChecksum().
|
private |
Destination port.
Definition at line 283 of file tcp-header.h.
Referenced by Deserialize(), GetDestinationPort(), ns3::operator==(), Print(), Serialize(), and SetDestinationPort().
|
private |
Flags (really a uint6_t)
Definition at line 287 of file tcp-header.h.
Referenced by Deserialize(), GetFlags(), ns3::operator==(), Print(), Serialize(), and SetFlags().
|
private |
Flag to indicate that checksum is correct.
Definition at line 296 of file tcp-header.h.
Referenced by Deserialize(), and IsChecksumOk().
|
private |
Length (really a uint4_t) in words.
Definition at line 286 of file tcp-header.h.
Referenced by AppendOption(), Deserialize(), and GetLength().
|
staticprivate |
|
private |
TcpOption present in the header.
Definition at line 300 of file tcp-header.h.
Referenced by AppendOption(), CalculateHeaderLength(), Deserialize(), GetOption(), HasOption(), Print(), and Serialize().
|
private |
|
private |
Protocol number.
Definition at line 293 of file tcp-header.h.
Referenced by CalculateHeaderChecksum(), and InitializeChecksum().
|
private |
Sequence number.
Definition at line 284 of file tcp-header.h.
Referenced by Deserialize(), GetSequenceNumber(), ns3::operator==(), Print(), Serialize(), and SetSequenceNumber().
|
private |
Source IP address.
Definition at line 291 of file tcp-header.h.
Referenced by CalculateHeaderChecksum(), and InitializeChecksum().
|
private |
Source port.
Definition at line 282 of file tcp-header.h.
Referenced by Deserialize(), GetSourcePort(), ns3::operator==(), Print(), Serialize(), and SetSourcePort().
|
private |
Urgent pointer.
Definition at line 289 of file tcp-header.h.
Referenced by Deserialize(), GetUrgentPointer(), ns3::operator==(), Serialize(), and SetUrgentPointer().
|
private |
Window size.
Definition at line 288 of file tcp-header.h.
Referenced by Deserialize(), GetWindowSize(), ns3::operator==(), Print(), Serialize(), and SetWindowSize().