]> git.proxmox.com Git - mirror_edk2.git/commitdiff
NetworkPkg: TcpDxe: Remove the redundant code.
authorSongpeng Li <songpeng.li@intel.com>
Thu, 16 Aug 2018 00:58:04 +0000 (08:58 +0800)
committerJiaxin Wu <Jiaxin.wu@intel.com>
Thu, 23 Aug 2018 08:30:46 +0000 (16:30 +0800)
The function TcpPawsOK that is never called have been removed.

Cc: Jiaxin Wu <jiaxin.wu@intel.com>
Cc: Siyuan Fu <siyuan.fu@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=1064
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Songpeng Li <songpeng.li@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com>
NetworkPkg/TcpDxe/TcpOption.c
NetworkPkg/TcpDxe/TcpOption.h

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
index 0ccadb9536c0dafdd05de4fd3e3231974e07914f..e50fb9b1290ad24834134ca49cbc6a85ed09b868 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Tcp option's routine header file.\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
@@ -126,20 +126,4 @@ TcpParseOption (
   IN OUT TCP_OPTION *Option\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
 #endif\r