Add comments for functions.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7039 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
niry
2008-12-16 02:57:53 +00:00
parent 74935bd732
commit dfc1f033ea
19 changed files with 2004 additions and 767 deletions

View File

@@ -1,25 +1,18 @@
/** @file
TCP input process routines.
Copyright (c) 2005 - 2007, Intel Corporation
Copyright (c) 2005 - 2007, Intel Corporation<BR>
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
http://opensource.org/licenses/bsd-license.php
http://opensource.org/licenses/bsd-license.php<BR>
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Module Name:
Tcp4Input.c
Abstract:
TCP input process routines.
**/
#include "Tcp4Main.h"
@@ -491,6 +484,8 @@ TcpDeliverData (
NetbufFree (Nbuf);
return -1;
break;
case default:
break;
}
TCP_SET_FLG (Tcb->CtrlFlag, TCP_CTRL_ACK_NOW);
@@ -772,10 +767,6 @@ TcpInput (
NetbufTrim (Nbuf, (Head->HeadLen << 2), NET_BUF_HEAD);
Nbuf->Tcp = NULL;
//
// TODO: add fast path process here
//
//
// Process the segment in LISTEN state.
//
@@ -861,14 +852,14 @@ TcpInput (
if (TCP_FLG_ON (Seg->Flag, TCP_FLG_ACK)) {
DEBUG ((EFI_D_WARN, "TcpInput: connection reset by"
" peer for TCB%x in SYN_SENT\n", Tcb));
" peer for TCB %p in SYN_SENT\n", Tcb));
SOCK_ERROR (Tcb->Sk, EFI_CONNECTION_RESET);
goto DROP_CONNECTION;
} else {
DEBUG ((EFI_D_WARN, "TcpInput: discard a reset segment "
"because of no ACK for TCB%x in SYN_SENT\n", Tcb));
"because of no ACK for TCB %p in SYN_SENT\n", Tcb));
goto DISCARD;
}
@@ -985,9 +976,7 @@ TcpInput (
SOCK_ERROR (Tcb->Sk, EFI_CONNECTION_RESET);
} else {
//
// TODO: set socket error to CLOSED
//
}
goto DROP_CONNECTION;
@@ -1174,7 +1163,7 @@ TcpInput (
}
DEBUG ((EFI_D_WARN, "TcpInput: peer shrinks the"
" window for connected TCB %p\n", Tcb));
" window for connected TCB %p\n", Tcb));
if ((Tcb->CongestState == TCP_CONGEST_RECOVER) &&
(TCP_SEQ_LT (Right, Tcb->Recover))) {