TianoCore EDK2 master
|
#include "TcpMain.h"
Go to the source code of this file.
Functions | |
UINT16 | TcpGetUint16 (IN UINT8 *Buf) |
UINT32 | TcpGetUint32 (IN UINT8 *Buf) |
VOID | TcpPutUint32 (OUT UINT8 *Buf, IN UINT32 Data) |
UINT8 | TcpComputeScale (IN TCP_CB *Tcb) |
UINT16 | TcpSynBuildOption (IN TCP_CB *Tcb, IN NET_BUF *Nbuf) |
UINT16 | TcpBuildOption (IN TCP_CB *Tcb, IN NET_BUF *Nbuf) |
INTN | TcpParseOption (IN TCP_HEAD *Tcp, IN OUT TCP_OPTION *Option) |
Routines to process TCP option.
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file TcpOption.c.
Build the TCP option in synchronized states.
[in] | Tcb | Pointer to the TCP_CB of this TCP instance. |
[in] | Nbuf | Pointer to the buffer to store the options. |
Definition at line 185 of file TcpOption.c.
Compute the window scale value according to the given buffer size.
[in] | Tcb | Pointer to the TCP_CB of this TCP instance. |
Definition at line 76 of file TcpOption.c.
UINT16 TcpGetUint16 | ( | IN UINT8 * | Buf | ) |
Get a UINT16 value from buffer.
[in] | Buf | Pointer to input buffer. |
Definition at line 21 of file TcpOption.c.
UINT32 TcpGetUint32 | ( | IN UINT8 * | Buf | ) |
Get a UINT32 value from buffer.
[in] | Buf | Pointer to input buffer. |
Definition at line 40 of file TcpOption.c.
Parse the supported options.
[in] | Tcp | Pointer to the TCP_CB of this TCP instance. |
[in,out] | Option | Pointer to the TCP_OPTION used to store the successfully pasrsed options. |
0 | The options are successfully pasrsed. |
-1 | Illegal option was found. |
Definition at line 232 of file TcpOption.c.
Put a UINT32 value in buffer.
[out] | Buf | Pointer to the buffer. |
[in] | Data | The UINT32 Date to put in the buffer. |
Definition at line 58 of file TcpOption.c.
Build the TCP option in three-way handshake.
[in] | Tcb | Pointer to the TCP_CB of this TCP instance. |
[in] | Nbuf | Pointer to the buffer to store the options. |
Definition at line 105 of file TcpOption.c.