diff options
author | niry <niry@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-12-16 02:57:53 +0000 |
---|---|---|
committer | niry <niry@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-12-16 02:57:53 +0000 |
commit | dfc1f033eadc0110006698797925f7060a251f10 (patch) | |
tree | 07692e61690fa05ecc34426738b40396f753ff49 /MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Misc.c | |
parent | 74935bd7321eab37fa6c72f6ac2dd60de5af9ac3 (diff) | |
download | edk2-platforms-dfc1f033eadc0110006698797925f7060a251f10.tar.xz |
Add comments for functions.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7039 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Misc.c')
-rw-r--r-- | MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Misc.c | 33 |
1 files changed, 15 insertions, 18 deletions
diff --git a/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Misc.c b/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Misc.c index 6d7117a164..1c269929e3 100644 --- a/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Misc.c +++ b/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Misc.c @@ -1,23 +1,15 @@ /** @file
+ Misc support routines for tcp.
-Copyright (c) 2005 - 2006, Intel Corporation
+Copyright (c) 2005 - 2006, 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:
-
- Tcp4Misc.c
-
-Abstract:
-
- Misc support routines for tcp.
-
-
**/
@@ -405,7 +397,7 @@ TcpInsertTcb ( /**
- Clone a TCP_CB from Tcb.
+ Clone a TCB_CB from Tcb.
@param Tcb Pointer to the TCP_CB to be cloned.
@@ -504,8 +496,8 @@ TcpGetRcvMss ( **/
VOID
TcpSetState (
- IN TCP_CB *Tcb,
- IN UINT8 State
+ IN TCP_CB *Tcb,
+ IN TCP_STATES State
)
{
DEBUG (
@@ -516,7 +508,7 @@ TcpSetState ( mTcpStateName[State])
);
- Tcb->State = State;
+ Tcb->State = (TCP_STATES)State;
switch (State) {
case TCP_ESTABLISHED:
@@ -538,6 +530,8 @@ TcpSetState ( SockConnClosed (Tcb->Sk);
break;
+ case default:
+ break;
}
}
@@ -572,7 +566,6 @@ TcpChecksum ( return (UINT16) ~Checksum;
}
-
/**
Translate the information from the head of the received TCP
segment Nbuf contains and fill it into a TCP_SEG structure.
@@ -731,6 +724,8 @@ TcpOnAppClose ( case TCP_CLOSE_WAIT:
TcpSetState (Tcb, TCP_LAST_ACK);
break;
+ case default:
+ break;
}
TcpToSendData (Tcb, 1);
@@ -781,6 +776,8 @@ TcpOnAppSend ( case TCP_TIME_WAIT:
return -1;
break;
+ case default:
+ break;
}
return 0;
@@ -822,13 +819,13 @@ TcpOnAppConsume ( if (TcpOld < Tcb->RcvMss) {
DEBUG ((EFI_D_INFO, "TcpOnAppConsume: send a window"
- " update for a window closed Tcb(%p)\n", Tcb));
+ " update for a window closed Tcb %p\n", Tcb));
TcpSendAck (Tcb);
} else if (Tcb->DelayedAck == 0) {
DEBUG ((EFI_D_INFO, "TcpOnAppConsume: scheduled a delayed"
- " ACK to update window for Tcb(%p)\n", Tcb));
+ " ACK to update window for Tcb %p\n", Tcb));
Tcb->DelayedAck = 1;
}
|