summaryrefslogtreecommitdiffstats
path: root/NetworkPkg/TcpDxe/TcpIo.c
diff options
context:
space:
mode:
Diffstat (limited to 'NetworkPkg/TcpDxe/TcpIo.c')
-rw-r--r--NetworkPkg/TcpDxe/TcpIo.c31
1 files changed, 14 insertions, 17 deletions
diff --git a/NetworkPkg/TcpDxe/TcpIo.c b/NetworkPkg/TcpDxe/TcpIo.c
index 5504c30cee..b207477462 100644
--- a/NetworkPkg/TcpDxe/TcpIo.c
+++ b/NetworkPkg/TcpDxe/TcpIo.c
@@ -25,11 +25,11 @@
VOID
EFIAPI
TcpRxCallback (
- IN EFI_STATUS Status,
- IN UINT8 IcmpErr,
- IN EFI_NET_SESSION_DATA *NetSession,
- IN NET_BUF *Pkt,
- IN VOID *Context OPTIONAL
+ IN EFI_STATUS Status,
+ IN UINT8 IcmpErr,
+ IN EFI_NET_SESSION_DATA *NetSession,
+ IN NET_BUF *Pkt,
+ IN VOID *Context OPTIONAL
)
{
if (EFI_SUCCESS == Status) {
@@ -67,15 +67,14 @@ TcpSendIpPacket (
IN UINT8 Version
)
{
- EFI_STATUS Status;
- IP_IO *IpIo;
- IP_IO_OVERRIDE Override;
- SOCKET *Sock;
- VOID *IpSender;
+ EFI_STATUS Status;
+ IP_IO *IpIo;
+ IP_IO_OVERRIDE Override;
+ SOCKET *Sock;
+ VOID *IpSender;
TCP_PROTO_DATA *TcpProto;
if (NULL == Tcb) {
-
IpIo = NULL;
IpSender = IpIoFindSender (&IpIo, Version, Src);
@@ -95,9 +94,8 @@ TcpSendIpPacket (
IpSender = NULL;
}
} else {
-
Sock = Tcb->Sk;
- TcpProto = (TCP_PROTO_DATA *) Sock->ProtoReserved;
+ TcpProto = (TCP_PROTO_DATA *)Sock->ProtoReserved;
IpIo = TcpProto->TcpService->IpIo;
IpSender = Tcb->IpInfo;
@@ -162,8 +160,8 @@ Tcp6RefreshNeighbor (
IN UINT32 Timeout
)
{
- IP_IO *IpIo;
- SOCKET *Sock;
+ IP_IO *IpIo;
+ SOCKET *Sock;
TCP_PROTO_DATA *TcpProto;
if (NULL == Tcb) {
@@ -174,10 +172,9 @@ Tcp6RefreshNeighbor (
DEBUG ((DEBUG_WARN, "Tcp6AddNeighbor: No appropriate IpIo.\n"));
return EFI_NOT_STARTED;
}
-
} else {
Sock = Tcb->Sk;
- TcpProto = (TCP_PROTO_DATA *) Sock->ProtoReserved;
+ TcpProto = (TCP_PROTO_DATA *)Sock->ProtoReserved;
IpIo = TcpProto->TcpService->IpIo;
}