/** @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
// 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
//\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
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