summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dispatcher.c
diff options
context:
space:
mode:
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2010-01-08 02:35:56 +0000
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2010-01-08 02:35:56 +0000
commite285199897e538523f762cb5b3900e81f872035a (patch)
treeaad7875d4dfb9f1705796b9c405c4f5549df18e1 /MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dispatcher.c
parent33338afebd3004e24d642e6dd7d053cda83990f1 (diff)
downloadedk2-e285199897e538523f762cb5b3900e81f872035a.tar.gz
edk2-e285199897e538523f762cb5b3900e81f872035a.tar.bz2
edk2-e285199897e538523f762cb5b3900e81f872035a.zip
refine the code and add more security check.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9691 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dispatcher.c')
-rw-r--r--MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dispatcher.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dispatcher.c b/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dispatcher.c
index 2b924c4b4b..664d25a1a2 100644
--- a/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dispatcher.c
+++ b/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dispatcher.c
@@ -1,7 +1,7 @@
/** @file
Tcp request dispatcher implementation.
-Copyright (c) 2005 - 2009, Intel Corporation<BR>
+Copyright (c) 2005 - 2010, 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
@@ -52,7 +52,7 @@ Tcp4Route (
RouteInfo->SubnetMask,
RouteInfo->GatewayAddress
);
-
+
}
@@ -249,7 +249,7 @@ Tcp4FlushPcb (
Attach a Pcb to the socket.
@param Sk Pointer to the socket of this TCP instance.
-
+
@retval EFI_SUCCESS The operation is completed successfully.
@retval EFI_OUT_OF_RESOURCES Failed due to resource limit.
@@ -300,7 +300,7 @@ Tcp4AttachPcb (
Detach the Pcb of the socket.
@param Sk Pointer to the socket of this TCP instance.
-
+
**/
VOID
Tcp4DetachPcb (
@@ -532,15 +532,15 @@ Tcp4ConfigurePcb (
(UINT32) (Option->ConnectionTimeout * TCP_TICK_HZ)
);
- if (Option->EnableNagle == FALSE) {
+ if (!Option->EnableNagle) {
TCP_SET_FLG (Tcb->CtrlFlag, TCP_CTRL_NO_NAGLE);
}
- if (Option->EnableTimeStamp == FALSE) {
+ if (!Option->EnableTimeStamp) {
TCP_SET_FLG (Tcb->CtrlFlag, TCP_CTRL_NO_TS);
}
- if (Option->EnableWindowScaling == FALSE) {
+ if (!Option->EnableWindowScaling) {
TCP_SET_FLG (Tcb->CtrlFlag, TCP_CTRL_NO_WS);
}
}
@@ -557,7 +557,7 @@ Tcp4ConfigurePcb (
//
// update state of Tcb and socket
//
- if (CfgData->AccessPoint.ActiveFlag == FALSE) {
+ if (!CfgData->AccessPoint.ActiveFlag) {
TcpSetState (Tcb, TCP_LISTEN);
SockSetState (Sk, SO_LISTENING);