TianoCore EDK2 master
|
#include "TcpMain.h"
Go to the source code of this file.
Functions | |
EFI_STATUS | Tcp4Route (IN TCP_CB *Tcb, IN TCP4_ROUTE_INFO *RouteInfo) |
EFI_STATUS | Tcp4GetMode (IN TCP_CB *Tcb, IN OUT TCP4_MODE_DATA *Mode) |
EFI_STATUS | Tcp6GetMode (IN TCP_CB *Tcb, IN OUT TCP6_MODE_DATA *Mode) |
EFI_STATUS | TcpBind (IN TCP_ACCESS_POINT *TcpAp, IN UINT8 IpVersion) |
VOID | TcpFlushPcb (IN OUT TCP_CB *Tcb) |
EFI_STATUS | TcpAttachPcb (IN SOCKET *Sk) |
VOID | TcpDetachPcb (IN OUT SOCKET *Sk) |
EFI_STATUS | TcpConfigurePcb (IN SOCKET *Sk, IN TCP_CONFIG_DATA *CfgData) |
EFI_STATUS | TcpDispatcher (IN SOCKET *Sock, IN UINT8 Request, IN VOID *Data OPTIONAL) |
The implementation of a dispatch routine for processing TCP requests.
(C) Copyright 2014 Hewlett-Packard Development Company, L.P.
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file TcpDispatcher.c.
EFI_STATUS Tcp4GetMode | ( | IN TCP_CB * | Tcb, |
IN OUT TCP4_MODE_DATA * | Mode | ||
) |
Get the operational settings of this TCPv4 instance.
[in] | Tcb | Pointer to the TCP_CB of this TCP instance. |
[in,out] | Mode | Pointer to the buffer to store the operational settings. |
EFI_SUCCESS | The mode data was read. |
EFI_NOT_STARTED | No configuration data is available because this instance hasn't been started. |
Definition at line 63 of file TcpDispatcher.c.
EFI_STATUS Tcp4Route | ( | IN TCP_CB * | Tcb, |
IN TCP4_ROUTE_INFO * | RouteInfo | ||
) |
Add or remove a route entry in the IP route table associated with this TCP instance.
[in] | Tcb | Pointer to the TCP_CB of this TCP instance. |
[in] | RouteInfo | Pointer to the route information to be processed. |
EFI_SUCCESS | The operation completed successfully. |
EFI_NOT_STARTED | The driver instance has not been started. |
EFI_NO_MAPPING | When using the default address, configuration(DHCP, BOOTP, RARP, etc.) is not finished yet. |
EFI_OUT_OF_RESOURCES | Could not add the entry to the routing table. |
EFI_NOT_FOUND | This route is not in the routing table (when RouteInfo->DeleteRoute is TRUE). |
EFI_ACCESS_DENIED | The route is already defined in the routing table (when RouteInfo->DeleteRoute is FALSE). |
Definition at line 30 of file TcpDispatcher.c.
EFI_STATUS Tcp6GetMode | ( | IN TCP_CB * | Tcb, |
IN OUT TCP6_MODE_DATA * | Mode | ||
) |
Get the operational settings of this TCPv6 instance.
[in] | Tcb | Pointer to the TCP_CB of this TCP instance. |
[in,out] | Mode | Pointer to the buffer to store the operational settings. |
EFI_SUCCESS | The mode data was read. |
EFI_NOT_STARTED | No configuration data is available because this instance hasn't been started. |
Definition at line 145 of file TcpDispatcher.c.
EFI_STATUS TcpAttachPcb | ( | IN SOCKET * | Sk | ) |
Attach a Pcb to the socket.
[in] | Sk | Pointer to the socket of this TCP instance. |
EFI_SUCCESS | The operation completed successfully. |
EFI_OUT_OF_RESOURCES | Failed due to resource limits. |
Definition at line 337 of file TcpDispatcher.c.
EFI_STATUS TcpBind | ( | IN TCP_ACCESS_POINT * | TcpAp, |
IN UINT8 | IpVersion | ||
) |
If TcpAp->StationPort isn't zero, check whether the access point is registered, else generate a random station port for this access point.
[in] | TcpAp | Pointer to the access point. |
[in] | IpVersion | IP_VERSION_4 or IP_VERSION_6 |
EFI_SUCCESS | The check passed or the port is assigned. |
EFI_INVALID_PARAMETER | The non-zero station port is already used. |
EFI_OUT_OF_RESOURCES | No port can be allocated. |
Definition at line 223 of file TcpDispatcher.c.
EFI_STATUS TcpConfigurePcb | ( | IN SOCKET * | Sk, |
IN TCP_CONFIG_DATA * | CfgData | ||
) |
Configure the Pcb using CfgData.
[in] | Sk | Pointer to the socket of this TCP instance. |
[in] | CfgData | Pointer to the TCP configuration data. |
EFI_SUCCESS | The operation completed successfully. |
EFI_INVALID_PARAMETER | A same access point has been configured in another TCP instance. |
EFI_OUT_OF_RESOURCES | Failed due to resource limits. |
Definition at line 443 of file TcpDispatcher.c.
Detach the Pcb of the socket.
[in,out] | Sk | Pointer to the socket of this TCP instance. |
Definition at line 409 of file TcpDispatcher.c.
EFI_STATUS TcpDispatcher | ( | IN SOCKET * | Sock, |
IN UINT8 | Request, | ||
IN VOID *Data | OPTIONAL | ||
) |
The protocol handler provided to the socket layer, which is used to dispatch the socket level requests by calling the corresponding TCP layer functions.
[in] | Sock | Pointer to the socket of this TCP instance. |
[in] | Request | The code of this operation request. |
[in] | Data | Pointer to the operation specific data passed in together with the operation request. This is an optional parameter that may be NULL. |
EFI_SUCCESS | The socket request completed successfully. |
other | The error status returned by the corresponding TCP layer function. |
Definition at line 764 of file TcpDispatcher.c.
Flush the Tcb add its associated protocols.
[in,out] | Tcb | Pointer to the TCP_CB to be flushed. |
Definition at line 293 of file TcpDispatcher.c.