X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FUniversal%2FNetwork%2FTcp4Dxe%2FTcp4Output.c;h=760b09a1eda1fe58fe4aebb0d29c58a04066790e;hp=5a3d837e1dab37e34e79b3074d4a4fe627a1d19e;hb=d1102dba7210b95e41d06c2338a22ba6af248645;hpb=ca79bab7af4770c5eb578f6d495af01705aedb79;ds=sidebyside diff --git a/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Output.c b/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Output.c index 5a3d837e1d..760b09a1ed 100644 --- a/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Output.c +++ b/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Output.c @@ -1,7 +1,7 @@ /** @file TCP output process routines. - -Copyright (c) 2005 - 2017, Intel Corporation. All rights reserved.
+ +Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -687,10 +687,10 @@ TcpRetransmit ( "TcpRetransmit: retransmission without regard to the receiver window for TCB %p\n", Tcb) ); - + } else if (TCP_SEQ_GEQ (Tcb->SndWl2 + Tcb->SndWnd, Seq)) { Len = TCP_SUB_SEQ (Tcb->SndWl2 + Tcb->SndWnd, Seq); - + } else { DEBUG ( (EFI_D_WARN, @@ -700,7 +700,7 @@ TcpRetransmit ( return 0; } - + Len = MIN (Len, Tcb->SndMss); Nbuf = TcpGetSegmentSndQue (Tcb, Seq, Len); @@ -713,7 +713,7 @@ TcpRetransmit ( if (TcpTransmitSegment (Tcb, Nbuf) != 0) { goto OnError; } - + if (TCP_SEQ_GT (Seq, Tcb->RetxmitSeqMax)) { Tcb->RetxmitSeqMax = Seq; } @@ -793,7 +793,7 @@ SEND_AGAIN: // only send a segment without data if SYN or // FIN is set. // - if ((Len == 0) && + if ((Len == 0) && ((Flag & (TCP_FLG_SYN | TCP_FLG_FIN)) == 0)) { return Sent; } @@ -831,10 +831,10 @@ SEND_AGAIN: TCP_SEQ_LT (End + 1, Tcb->SndWnd + Tcb->SndWl2)) { DEBUG ( - (EFI_D_NET, - "TcpToSendData: send FIN " - "to peer for TCB %p in state %s\n", - Tcb, + (EFI_D_NET, + "TcpToSendData: send FIN " + "to peer for TCB %p in state %s\n", + Tcb, mTcpStateName[Tcb->State]) );