diff options
author | niry <niry@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-01-16 06:56:18 +0000 |
---|---|---|
committer | niry <niry@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-01-16 06:56:18 +0000 |
commit | dab714aa1171a7916df00486f077dc8e923d8ab1 (patch) | |
tree | a187ecf53a5ba50e9ce6f0c09a101c8824be7030 /MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Proto.h | |
parent | bd59b46eb41585a8977f30067c111b30278bf391 (diff) | |
download | edk2-platforms-dab714aa1171a7916df00486f077dc8e923d8ab1.tar.xz |
Insert comments for functions/macros and add the file headers.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7293 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Proto.h')
-rw-r--r-- | MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Proto.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Proto.h b/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Proto.h index f1eaad5be1..56b68db904 100644 --- a/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Proto.h +++ b/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Proto.h @@ -1,5 +1,6 @@ /** @file
-
+ Tcp Protocol header file.
+
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
@@ -311,18 +312,25 @@ extern UINT32 mTcpTick; //
#define TCP_SUB_SEQ(Seq1, Seq2) ((UINT32) ((Seq1) - (Seq2)))
+//
+// Check whether Flag is on
+//
#define TCP_FLG_ON(Value, Flag) ((BOOLEAN) (((Value) & (Flag)) != 0))
+
+//
+// Set and Clear operation on a Flag
+//
#define TCP_SET_FLG(Value, Flag) ((Value) |= (Flag))
#define TCP_CLEAR_FLG(Value, Flag) ((Value) &= ~(Flag))
//
-// test whether two peers are equal
+// Test whether two peers are equal
//
#define TCP_PEER_EQUAL(Pa, Pb) \
(((Pa)->Ip == (Pb)->Ip) && ((Pa)->Port == (Pb)->Port))
//
-// test whether Pa matches Pb, or Pa is more specific
+// Test whether Pa matches Pb, or Pa is more specific
// than pb. Zero means wildcard.
//
#define TCP_PEER_MATCH(Pa, Pb) \
@@ -342,8 +350,7 @@ extern UINT32 mTcpTick; typedef
VOID
(*TCP_TIMER_HANDLER) (
- IN TCP_CB *Tcb
+ IN OUT TCP_CB *Tcb
);
-#include "Tcp4Func.h"
#endif
|