A Discrete-Event Network Simulator
API
tcp-header-test.cc File Reference
#include <stdint.h>
#include "ns3/test.h"
#include "ns3/core-module.h"
#include "ns3/tcp-header.h"
#include "ns3/buffer.h"
#include "ns3/private/tcp-option-rfc793.h"
+ Include dependency graph for tcp-header-test.cc:

Go to the source code of this file.

Classes

class  ns3::TcpHeaderFlagsToString
 
class  ns3::TcpHeaderGetSetTestCase
 
class  ns3::TcpHeaderTestSuite
 
class  ns3::TcpHeaderWithRFC793OptionTestCase
 

Namespaces

 ns3
 Every class exported by the ns3 library is enclosed in the ns3 namespace.
 

Macros

#define __STDC_LIMIT_MACROS
 
#define GET_RANDOM_UINT16(RandomVariable)   static_cast<uint16_t> (RandomVariable->GetInteger (0, UINT16_MAX))
 
#define GET_RANDOM_UINT32(RandomVariable)   static_cast<uint32_t> (RandomVariable->GetInteger (0, UINT32_MAX))
 
#define GET_RANDOM_UINT6(RandomVariable)   static_cast<uint8_t> (RandomVariable->GetInteger (0, UINT8_MAX >> 2))
 
#define GET_RANDOM_UINT8(RandomVariable)   static_cast<uint8_t> (RandomVariable->GetInteger (0, UINT8_MAX))
 

Variables

ns3::TcpHeaderTestSuite ns3::g_TcpHeaderTestSuite
 

Macro Definition Documentation

#define __STDC_LIMIT_MACROS

Definition at line 20 of file tcp-header-test.cc.

#define GET_RANDOM_UINT16 (   RandomVariable)    static_cast<uint16_t> (RandomVariable->GetInteger (0, UINT16_MAX))

Definition at line 33 of file tcp-header-test.cc.

Referenced by ns3::TcpHeaderGetSetTestCase::DoRun().

#define GET_RANDOM_UINT32 (   RandomVariable)    static_cast<uint32_t> (RandomVariable->GetInteger (0, UINT32_MAX))

Definition at line 30 of file tcp-header-test.cc.

Referenced by ns3::TcpHeaderGetSetTestCase::DoRun().

#define GET_RANDOM_UINT6 (   RandomVariable)    static_cast<uint8_t> (RandomVariable->GetInteger (0, UINT8_MAX >> 2))

Definition at line 39 of file tcp-header-test.cc.

Referenced by ns3::TcpHeaderGetSetTestCase::DoRun().

#define GET_RANDOM_UINT8 (   RandomVariable)    static_cast<uint8_t> (RandomVariable->GetInteger (0, UINT8_MAX))

Definition at line 36 of file tcp-header-test.cc.