]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Proto.h
add assertion to pass K8 check.
[mirror_edk2.git] / MdeModulePkg / Universal / Network / Tcp4Dxe / Tcp4Proto.h
index f1eaad5be1939011f45ea1f26222a8800def8193..78d2eb3799abf8a873a481df7e1c58f5750cf6d4 100644 (file)
@@ -1,5 +1,6 @@
 /** @file\r
-        \r
+  Tcp Protocol header file.\r
+\r
 Copyright (c) 2005 - 2006, Intel Corporation<BR>\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
@@ -258,8 +259,8 @@ struct _TCP_CB {
   // configuration for tcp provided by user\r
   //\r
   BOOLEAN           UseDefaultAddr;\r
-  UINT8             TOS;\r
-  UINT8             TTL;\r
+  UINT8             Tos;\r
+  UINT8             Ttl;\r
   EFI_IPv4_ADDRESS  SubnetMask;\r
 \r
   IP_IO_IP_INFO     *IpInfo;        ///<pointer reference to Ip used to send pkt\r
@@ -311,18 +312,25 @@ extern UINT32         mTcpTick;
 //\r
 #define TCP_SUB_SEQ(Seq1, Seq2)     ((UINT32) ((Seq1) - (Seq2)))\r
 \r
+//\r
+// Check whether Flag is on\r
+//\r
 #define TCP_FLG_ON(Value, Flag)     ((BOOLEAN) (((Value) & (Flag)) != 0))\r
+\r
+//\r
+// Set and Clear operation on a Flag\r
+//\r
 #define TCP_SET_FLG(Value, Flag)    ((Value) |= (Flag))\r
 #define TCP_CLEAR_FLG(Value, Flag)  ((Value) &= ~(Flag))\r
 \r
 //\r
-// test whether two peers are equal\r
+// Test whether two peers are equal\r
 //\r
 #define TCP_PEER_EQUAL(Pa, Pb) \\r
   (((Pa)->Ip == (Pb)->Ip) && ((Pa)->Port == (Pb)->Port))\r
 \r
 //\r
-// test whether Pa matches Pb, or Pa is more specific\r
+// Test whether Pa matches Pb, or Pa is more specific\r
 // than pb. Zero means wildcard.\r
 //\r
 #define TCP_PEER_MATCH(Pa, Pb) \\r
@@ -342,8 +350,7 @@ extern UINT32         mTcpTick;
 typedef\r
 VOID\r
 (*TCP_TIMER_HANDLER) (\r
-  IN TCP_CB *Tcb\r
+  IN OUT TCP_CB *Tcb\r
   );\r
 \r
-#include "Tcp4Func.h"\r
 #endif\r