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

Go to the source code of this file.

Classes

class  TcpHeaderFlagsToString
 TCP header Flags to String test. More...
 
class  TcpHeaderGetSetTestCase
 TCP header Get/Set test. More...
 
class  TcpHeaderTestSuite
 TCP header TestSuite. More...
 
class  TcpHeaderWithRFC793OptionTestCase
 TCP header with RFC793 Options test. More...
 

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

static TcpHeaderTestSuite g_TcpHeaderTestSuite
 Static variable for test initialization. More...
 

Macro Definition Documentation

◆ __STDC_LIMIT_MACROS

#define __STDC_LIMIT_MACROS

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

◆ GET_RANDOM_UINT16

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

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

◆ GET_RANDOM_UINT32

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

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

◆ GET_RANDOM_UINT6

#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.

◆ GET_RANDOM_UINT8

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

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

Variable Documentation

◆ g_TcpHeaderTestSuite

TcpHeaderTestSuite g_TcpHeaderTestSuite
static

Static variable for test initialization.

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