NetSim Source Code Help
Loading...
Searching...
No Matches
SACK.c File Reference
#include "main.h"
#include "TCP.h"
#include "TCP_Header.h"
Include dependency graph for SACK.c:

Go to the source code of this file.

Functions

static UINT get_max_sack_data (PTCP_SEGMENT_HDR hdr)
 
UINT32 get_highAck (PNETSIM_SOCKET s)
 
static UINT32 get_highData (PNETSIM_SOCKET s)
 
static UINT32 get_highRxt (PNETSIM_SOCKET s)
 
void set_highRxt (PNETSIM_SOCKET s, UINT32 seq)
 
static UINT32 get_rescueRxt (PNETSIM_SOCKET s)
 
void set_rescueRxt (PNETSIM_SOCKET s, UINT32 seq)
 
void set_recoveryPoint (PNETSIM_SOCKET s, UINT32 val)
 
UINT32 get_recoveryPoint (PNETSIM_SOCKET s)
 
UINT32 get_pipe (PNETSIM_SOCKET s)
 
void set_sack_option (PNETSIM_SOCKET s, PTCP_SEGMENT_HDR hdr, double time)
 
static void update_sack_flag (PNETSIM_SOCKET s, UINT32 left, UINT32 right)
 
static void update_scoreboard (PNETSIM_SOCKET s, UINT left, UINT right, UINT index)
 
bool tcp_sack_isLost (PNETSIM_SOCKET s, UINT seqNum)
 
void tcp_sack_setPipe (PNETSIM_SOCKET s)
 
UINT32 tcp_sack_nextSeg (PNETSIM_SOCKET s)
 
void receive_sack_option (PNETSIM_SOCKET s, PTCP_SEGMENT_HDR hdr)
 
void tcp_sack_fastRetransmit (PNETSIM_SOCKET s)
 
bool tcp_sack_lossRecoveryPhase (PNETSIM_SOCKET s)
 

Function Documentation

◆ get_highAck()

UINT32 get_highAck ( PNETSIM_SOCKET  s)

Definition at line 23 of file SACK.c.

Here is the caller graph for this function:

◆ get_highData()

static UINT32 get_highData ( PNETSIM_SOCKET  s)
static

Definition at line 28 of file SACK.c.

Here is the caller graph for this function:

◆ get_highRxt()

static UINT32 get_highRxt ( PNETSIM_SOCKET  s)
static

Definition at line 33 of file SACK.c.

Here is the caller graph for this function:

◆ get_max_sack_data()

static UINT get_max_sack_data ( PTCP_SEGMENT_HDR  hdr)
static

Definition at line 18 of file SACK.c.

Here is the caller graph for this function:

◆ get_pipe()

UINT32 get_pipe ( PNETSIM_SOCKET  s)

Definition at line 63 of file SACK.c.

Here is the caller graph for this function:

◆ get_recoveryPoint()

UINT32 get_recoveryPoint ( PNETSIM_SOCKET  s)

Definition at line 58 of file SACK.c.

◆ get_rescueRxt()

static UINT32 get_rescueRxt ( PNETSIM_SOCKET  s)
static

Definition at line 43 of file SACK.c.

◆ receive_sack_option()

void receive_sack_option ( PNETSIM_SOCKET  s,
PTCP_SEGMENT_HDR  hdr 
)

Definition at line 280 of file SACK.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_highRxt()

void set_highRxt ( PNETSIM_SOCKET  s,
UINT32  seq 
)

Definition at line 38 of file SACK.c.

Here is the caller graph for this function:

◆ set_recoveryPoint()

void set_recoveryPoint ( PNETSIM_SOCKET  s,
UINT32  val 
)

Definition at line 53 of file SACK.c.

Here is the caller graph for this function:

◆ set_rescueRxt()

void set_rescueRxt ( PNETSIM_SOCKET  s,
UINT32  seq 
)

Definition at line 48 of file SACK.c.

Here is the caller graph for this function:

◆ set_sack_option()

void set_sack_option ( PNETSIM_SOCKET  s,
PTCP_SEGMENT_HDR  hdr,
double  time 
)

Definition at line 68 of file SACK.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ tcp_sack_fastRetransmit()

void tcp_sack_fastRetransmit ( PNETSIM_SOCKET  s)

Definition at line 312 of file SACK.c.

Here is the call graph for this function:

◆ tcp_sack_isLost()

bool tcp_sack_isLost ( PNETSIM_SOCKET  s,
UINT  seqNum 
)

Definition at line 170 of file SACK.c.

Here is the caller graph for this function:

◆ tcp_sack_lossRecoveryPhase()

bool tcp_sack_lossRecoveryPhase ( PNETSIM_SOCKET  s)

Definition at line 321 of file SACK.c.

Here is the call graph for this function:

◆ tcp_sack_nextSeg()

UINT32 tcp_sack_nextSeg ( PNETSIM_SOCKET  s)

Definition at line 211 of file SACK.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ tcp_sack_setPipe()

void tcp_sack_setPipe ( PNETSIM_SOCKET  s)

Definition at line 192 of file SACK.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ update_sack_flag()

static void update_sack_flag ( PNETSIM_SOCKET  s,
UINT32  left,
UINT32  right 
)
static

Definition at line 140 of file SACK.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ update_scoreboard()

static void update_scoreboard ( PNETSIM_SOCKET  s,
UINT  left,
UINT  right,
UINT  index 
)
static

Definition at line 152 of file SACK.c.

Here is the caller graph for this function: