]> git.proxmox.com Git - mirror_edk2.git/blobdiff - NetworkPkg/TcpDxe/TcpOption.c
ArmPlatformPkg/PL011SerialPortLib: use untyped PCD for register base
[mirror_edk2.git] / NetworkPkg / TcpDxe / TcpOption.c
index bacce1070d65a6c7e1658f9a61cc78902f56e29e..bd1c2b9c279227eecac62643a488a04bc6610cef 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Routines to process TCP option.\r
 \r
-  Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
 \r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
@@ -342,33 +342,3 @@ TcpParseOption (
 \r
   return 0;\r
 }\r
-\r
-/**\r
-  Check the segment against PAWS.\r
-\r
-  @param[in]  Tcb     Pointer to the TCP_CB of this TCP instance.\r
-  @param[in]  TSVal   The timestamp value.\r
-\r
-  @retval     1       The segment passed the PAWS check.\r
-  @retval     0       The segment failed to pass the PAWS check.\r
-\r
-**/\r
-UINT32\r
-TcpPawsOK (\r
-  IN TCP_CB *Tcb,\r
-  IN UINT32 TSVal\r
-  )\r
-{\r
-  //\r
-  // PAWS as defined in RFC1323, buggy...\r
-  //\r
-  if (TCP_TIME_LT (TSVal, Tcb->TsRecent) &&\r
-      TCP_TIME_LT (Tcb->TsRecentAge + TCP_PAWS_24DAY, mTcpTick)\r
-      ) {\r
-\r
-    return 0;\r
-\r
-  }\r
-\r
-  return 1;\r
-}\r