21 #include "ns3/core-module.h" 
   22 #include "ns3/tcp-option.h" 
   23 #include "ns3/private/tcp-option-winscale.h" 
   24 #include "ns3/private/tcp-option-ts.h" 
   39   virtual void DoRun (
void);
 
   79   uint8_t kind = start.
PeekU8 ();
 
  102   virtual void DoRun (
void);
 
  121   for (uint32_t i = 0; i < 1000; ++i)
 
  152   uint8_t kind = start.
PeekU8 ();
 
  173     for (uint8_t i = 0; i < 15; ++i)
 
virtual uint32_t GetSerializedSize(void) const 
Returns number of bytes required for Option serialization. 
 
void AddAtStart(uint32_t start)
 
virtual void DoRun(void)
Implementation to actually run this TestCase. 
 
String attribute value declarations. 
 
automatically resized byte buffer 
 
virtual uint32_t Deserialize(Buffer::Iterator start)
Deserialize the Option from a buffer iterator. 
 
void SetTimestamp(uint32_t ts)
Set the timestamp stored in the Option. 
 
Defines the TCP option of kind 3 (window scale option) as in RFC 1323 
 
#define NS_TEST_EXPECT_MSG_EQ(actual, limit, msg)
Test that an actual and expected (limit) value are equal and report if not. 
 
This test suite implements a Unit Test. 
 
void SetEcho(uint32_t ts)
Set the timestamp echo stored in the Option. 
 
iterator in a Buffer instance 
 
virtual uint32_t Deserialize(Buffer::Iterator start)
Deserialize the Option from a buffer iterator. 
 
uint8_t GetScale(void) const 
Get the scale value (uint8_t) 
 
virtual uint32_t GetInteger(void)=0
Get the next random value as an integer drawn from the distribution. 
 
void AddTestCase(TestCase *testCase, enum TestDuration duration)
Add an individual child TestCase to this test suite. 
 
virtual void DoTeardown(void)
Implementation to do any local setup required for this TestCase. 
 
TcpOptionWSTestCase(std::string name, uint8_t scale)
 
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. 
 
Buffer::Iterator Begin(void) const 
 
virtual void Serialize(Buffer::Iterator start) const 
Serialize the Option to a buffer iterator. 
 
Every class exported by the ns3 library is enclosed in the ns3 namespace. 
 
void SetScale(uint8_t scale)
Set the scale option. 
 
virtual void DoRun(void)
Implementation to actually run this TestCase. 
 
Defines the TCP option of kind 8 (timestamp option) as in RFC 1323 
 
virtual void DoTeardown(void)
Implementation to do any local setup required for this TestCase. 
 
uint32_t GetTimestamp(void) const 
Get the timestamp stored in the Option. 
 
ns3::TcpOptionTestSuite g_TcpOptionTestSuite
 
TcpOptionTSTestCase(std::string name)
 
uint32_t GetEcho(void) const 
Get the timestamp echo stored in the Option.