TianoCore EDK2 master
Loading...
Searching...
No Matches
TcpTimer.c File Reference
#include "TcpMain.h"

Go to the source code of this file.

Functions

VOID TcpConnectTimeout (IN OUT TCP_CB *Tcb)
 
VOID TcpRexmitTimeout (IN OUT TCP_CB *Tcb)
 
VOID TcpProbeTimeout (IN OUT TCP_CB *Tcb)
 
VOID TcpKeepaliveTimeout (IN OUT TCP_CB *Tcb)
 
VOID TcpFinwait2Timeout (IN OUT TCP_CB *Tcb)
 
VOID Tcp2MSLTimeout (IN OUT TCP_CB *Tcb)
 
VOID TcpClose (IN OUT TCP_CB *Tcb)
 
VOID TcpBackoffRto (IN OUT TCP_CB *Tcb)
 
VOID TcpUpdateTimer (IN OUT TCP_CB *Tcb)
 
VOID TcpSetTimer (IN OUT TCP_CB *Tcb, IN UINT16 Timer, IN UINT32 TimeOut)
 
VOID TcpClearTimer (IN OUT TCP_CB *Tcb, IN UINT16 Timer)
 
VOID TcpClearAllTimer (IN OUT TCP_CB *Tcb)
 
VOID TcpSetProbeTimer (IN OUT TCP_CB *Tcb)
 
VOID TcpSetKeepaliveTimer (IN OUT TCP_CB *Tcb)
 
VOID EFIAPI TcpTickingDpc (IN VOID *Context)
 
VOID EFIAPI TcpTicking (IN EFI_EVENT Event, IN VOID *Context)
 

Variables

UINT32 mTcpTick = 1000
 
TCP_TIMER_HANDLER mTcpTimerHandler [TCP_TIMER_NUMBER]
 

Detailed Description

TCP timer related functions.

Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.
Copyright (c) Microsoft Corporation SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file TcpTimer.c.

Function Documentation

◆ Tcp2MSLTimeout()

VOID Tcp2MSLTimeout ( IN OUT TCP_CB Tcb)

Timeout handler for 2MSL timer.

Parameters
[in,out]TcbPointer to the TCP_CB of this TCP instance.

Definition at line 310 of file TcpTimer.c.

◆ TcpBackoffRto()

VOID TcpBackoffRto ( IN OUT TCP_CB Tcb)

Backoff the RTO.

Parameters
[in,out]TcbPointer to the TCP_CB of this TCP instance.

Definition at line 113 of file TcpTimer.c.

◆ TcpClearAllTimer()

VOID TcpClearAllTimer ( IN OUT TCP_CB Tcb)

Clear all TCP timers.

Parameters
[in,out]TcbPointer to the TCP_CB of this TCP instance.

Definition at line 400 of file TcpTimer.c.

◆ TcpClearTimer()

VOID TcpClearTimer ( IN OUT TCP_CB Tcb,
IN UINT16  Timer 
)

Clear one TCP timer.

Parameters
[in,out]TcbPointer to the TCP_CB of this TCP instance.
[in]TimerThe index of the timer to be cleared.

Definition at line 384 of file TcpTimer.c.

◆ TcpClose()

VOID TcpClose ( IN OUT TCP_CB Tcb)

Close the TCP connection.

Parameters
[in,out]TcbPointer to the TCP_CB of this TCP instance.

Definition at line 96 of file TcpTimer.c.

◆ TcpConnectTimeout()

VOID TcpConnectTimeout ( IN OUT TCP_CB Tcb)

Connect timeout handler.

Parameters
[in,out]TcbPointer to the TCP_CB of this TCP instance.

Definition at line 143 of file TcpTimer.c.

◆ TcpFinwait2Timeout()

VOID TcpFinwait2Timeout ( IN OUT TCP_CB Tcb)

Timeout handler for FIN_WAIT_2 timer.

Parameters
[in,out]TcbPointer to the TCP_CB of this TCP instance.

Definition at line 290 of file TcpTimer.c.

◆ TcpKeepaliveTimeout()

VOID TcpKeepaliveTimeout ( IN OUT TCP_CB Tcb)

Timeout handler for keepalive timer.

Parameters
[in,out]TcbPointer to the TCP_CB of this TCP instance.

Definition at line 261 of file TcpTimer.c.

◆ TcpProbeTimeout()

VOID TcpProbeTimeout ( IN OUT TCP_CB Tcb)

Timeout handler for window probe timer.

Parameters
[in,out]TcbPointer to the TCP_CB of this TCP instance.

Definition at line 234 of file TcpTimer.c.

◆ TcpRexmitTimeout()

VOID TcpRexmitTimeout ( IN OUT TCP_CB Tcb)

Timeout handler for TCP retransmission timer.

Parameters
[in,out]TcbPointer to the TCP_CB of this TCP instance.

Definition at line 179 of file TcpTimer.c.

◆ TcpSetKeepaliveTimer()

VOID TcpSetKeepaliveTimer ( IN OUT TCP_CB Tcb)

Enable the keepalive timer and set the timeout value.

Parameters
[in,out]TcbPointer to the TCP_CB of this TCP instance.

Definition at line 442 of file TcpTimer.c.

◆ TcpSetProbeTimer()

VOID TcpSetProbeTimer ( IN OUT TCP_CB Tcb)

Enable the window prober timer and set the timeout value.

Parameters
[in,out]TcbPointer to the TCP_CB of this TCP instance.

Definition at line 415 of file TcpTimer.c.

◆ TcpSetTimer()

VOID TcpSetTimer ( IN OUT TCP_CB Tcb,
IN UINT16  Timer,
IN UINT32  TimeOut 
)

Enable a TCP timer.

Parameters
[in,out]TcbPointer to the TCP_CB of this TCP instance.
[in]TimerThe index of the timer to be enabled.
[in]TimeOutThe timeout value of this timer.

Definition at line 364 of file TcpTimer.c.

◆ TcpTicking()

VOID EFIAPI TcpTicking ( IN EFI_EVENT  Event,
IN VOID *  Context 
)

Heart beat timer handler, queues the DPC at TPL_CALLBACK.

Parameters
[in]EventTimer event signaled, ignored.
[in]ContextContext of the timer event, ignored.

Definition at line 563 of file TcpTimer.c.

◆ TcpTickingDpc()

VOID EFIAPI TcpTickingDpc ( IN VOID *  Context)

Heart beat timer handler.

Parameters
[in]ContextContext of the timer event, ignored.

Definition at line 476 of file TcpTimer.c.

◆ TcpUpdateTimer()

VOID TcpUpdateTimer ( IN OUT TCP_CB Tcb)

Update the timer status and the next expire time according to the timers to expire in a specific future time slot.

Parameters
[in,out]TcbPointer to the TCP_CB of this TCP instance.

Definition at line 331 of file TcpTimer.c.

Variable Documentation

◆ mTcpTick

UINT32 mTcpTick = 1000

Definition at line 12 of file TcpTimer.c.

◆ mTcpTimerHandler

Initial value:
= {
}
VOID TcpProbeTimeout(IN OUT TCP_CB *Tcb)
Definition: TcpTimer.c:234
VOID TcpRexmitTimeout(IN OUT TCP_CB *Tcb)
Definition: TcpTimer.c:179
VOID Tcp2MSLTimeout(IN OUT TCP_CB *Tcb)
Definition: TcpTimer.c:310
VOID TcpConnectTimeout(IN OUT TCP_CB *Tcb)
Definition: TcpTimer.c:143
VOID TcpKeepaliveTimeout(IN OUT TCP_CB *Tcb)
Definition: TcpTimer.c:261
VOID TcpFinwait2Timeout(IN OUT TCP_CB *Tcb)
Definition: TcpTimer.c:290

Definition at line 80 of file TcpTimer.c.