23 #include "ns3/tcp-option-sack-permitted.h" 24 #include "ns3/tcp-header.h" 127 if (!(h.
GetFlags () & TcpHeader::SYN))
130 "SackPermitted in non-SYN segment");
137 "SackPermitted disabled but option enabled");
142 "SackPermitted enabled but option disabled");
153 "SackPermitted disabled but option enabled");
158 "SackPermitted enabled but option disabled");
166 "SackPermitted disabled but option enabled");
178 "sender has not ts, but receiver sent anyway");
183 "receiver has not ts enabled but sent anyway");
191 "SackPermitted disabled but option enabled");
Smart pointer class similar to boost::intrusive_ptr.
virtual void Tx(const Ptr< const Packet > p, const TcpHeader &h, SocketWho who)
Packet transmitted down to IP layer.
AttributeValue implementation for Boolean.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_LOG_INFO(msg)
Use NS_LOG to output a message of level LOG_INFO.
void AddTestCase(TestCase *testCase, TestDuration duration=QUICK)
Add an individual child TestCase to this test suite.
#define NS_TEST_ASSERT_MSG_EQ(actual, limit, msg)
Test that an actual and expected (limit) value are equal and report and abort if not.
TcpSackPermittedTestSuite()
Constructor.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
virtual Ptr< TcpSocketMsgBase > CreateSenderSocket(Ptr< Node > node)
Create and install the socket to install on the sender.
virtual Ptr< TcpSocketMsgBase > CreateReceiverSocket(Ptr< Node > node)
Create and install the socket to install on the receiver.
Configuration
Configuration of the test.
SocketWho
Used as parameter of methods, specifies on what node the caller is interested (e.g.
General infrastructure for TCP testing.
SackPermittedTestCase(SackPermittedTestCase::Configuration conf)
Constructor.
static TcpSackPermittedTestSuite g_tcpSackPermittedTestSuite
Static variable for test initialization.
Test case for checking the SACK-PERMITTED option.
This test suite implements a Unit Test.
void SetAttribute(std::string name, const AttributeValue &value)
Set a single attribute, raising fatal errors if unsuccessful.
The test case for testing the TCP SACK PERMITTED option.
Configuration m_configuration
The configuration.